Issue 74591 - formula can go out of view< scrollbars activated too late
Summary: formula can go out of view< scrollbars activated too late
Status: CONFIRMED
Alias: None
Product: Math
Classification: Application
Component: code (show other issues)
Version: OOo 2.1
Hardware: All All
: P4 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2007-02-16 02:14 UTC by hgkamath
Modified: 2013-08-07 14:54 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description hgkamath 2007-02-16 02:14:34 UTC
Basically situations can be created where the formulas
  are not centered, out of view, and scroll bars not shown.

* Open Open Office Math
* In the command Window type "x+y"
* Wait 2 second till formula view is updated
* select the "+y" with mouse and Copy (Ctrl+c)
* Now paste +y (Ctrl+v) repeatedly till you get about 
  one line of text in the command windows as follows 
"
a+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y+y
"
* Wait 2 seconds till formula display is updated
* When updated, on a 1280x1024 resolution screen, and a maximized
  application window, the end of formula
  display goes out of view, as formula has actually started 
  from the beginning. On larger resolution monitors you might need 
  longer texts to go out of view.

workaround
* zoom out, and zoom in, and a refresh is forced.
  The formula display is centered, and scroll bars appropriately displayed
(A refresh also happens during an autosave)

This effect can be played with in many ways
* create a really long equation
* zoom in zoom out to center the formula view
* now select all (ctrl-A) replace with a small equation
* It will not be visible on screen as it might be completely to the left
  and outside the formula view.

same thing can be done using multiple "x+y newline" to get the formula
  out of display vertically. 

The philosophy seems to be to hold the formula in the 
formula display stationary, maybe for aesthetics, or maybe for future 
grahical equation editing. However in doing so, large formulas
can go out of view.

Desired : When some change is made in the formula command window, 
* Check where the new cursor point is still visible in the formula view
  If formula-cursor-point has gone out of view then
  * center formula in the formula view
  * set the hscroll and vscroll so that the formula-cursor-point is 
    within a smaller rectangle in the view.
  * Enable/disable the scroll bars appropriately.
  * redraw formula view 

Found in Openoffice 2.1 (release) winXP
Comment 1 michael.ruess 2007-02-16 15:53:09 UTC
When entering a very long formula in Math, the scrollbars are only activated
when achange of the zoom factor is triggered.
Comment 2 ace_dent 2007-06-02 21:03:57 UTC
Confirmed with OOo 2.0.4, WinXP PC.
The Issue of not enabling scrollbars for the Formula Window is a duplicate of
Issue 30588. However, this issue also covers the formula position not being
recalculated and hence may not stay centered on screen during editing.
It seems the larger problem is that insufficient display updates are done while
editing formulas in the command window. Fixing this will fix both #30588 and #74591.

Cheers,
Andrew
Comment 3 Rainer Bielefeld 2008-11-02 09:49:13 UTC
Still visible with 3.0.
I believe this is an additional aspect of the problem reported with Issue 30588.
May be wit should this issue a DUP of Issue 30588.
Comment 4 thomas.lange 2008-11-03 08:07:16 UTC
tl->rainerbielefeld: to me it seems issue 30588 sys there are no scrollbars or
they don't appear when needed. And when looking at it in OOo 300m3 that problem
at least seems already to be fixed. Thus this one should not be a duplicate of
that issue.

Can you please check issue 30588? And if you agree that it is fixed close that
one? Thanks in advance!