Bug 150625 - calculation for placement of horizontal ruler in sm Formula component incorrect
Summary: calculation for placement of horizontal ruler in sm Formula component incorrect
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Formula-Editor
  Show dependency treegraph
 
Reported: 2022-08-26 14:34 UTC by V Stuart Foote
Modified: 2024-08-26 12:15 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
clip when writer zoom was set exposing both page edges (110.66 KB, image/jpeg)
2022-08-26 14:39 UTC, V Stuart Foote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description V Stuart Foote 2022-08-26 14:34:15 UTC
As work on bug 125931 advances, on Windows seems calculation for placement of horizontal ruler in sm Formula component is incorrect and depends on the zoom level in use as a new formula OLE is being inserted, or when an existing OLE formula is being edited.

When Writer canvas is zoomed to scale at which both edges of the canvas are visible, as sm Formula component is opened the placement of the menu bar is miscalculated and does not align with the canvas representation in the preview.

Once zoom of the canvas in Writer is increased so that the right edge is hidden, placement of the ruler in sm Formula editor aligns correctly.


STR
1. open Writer
2. set page zoom so that both edges of page are visible
3. main menu Insert -> Insert OLE object -> Formula object
4. sm Formula modul opens
5. observe position of ruler element, shifted to right and does not align with left edge of page preview shown in sm Formula

6. close sm Formula panel
7. back on Writer canvas, set a zoom so right edge of canvas is hidden--the right margin can remain (about 180% on my 1920x1080 display).
8. repeat main menu Insert -> Insert OLE object -> Formula object
9. sm Formula module opens
10. observe position of ruler element, no longer shifted and aligns with left edge of page preview shown in sm Formula


=- Testing -=
Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 64be7052ba7e02e248412222098e07a5f4106456
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 1 V Stuart Foote 2022-08-26 14:39:55 UTC
Created attachment 182043 [details]
clip when writer zoom was set exposing both page edges
Comment 2 V Stuart Foote 2022-08-26 14:48:01 UTC
also happens in 7.3, so not related to work on bug 125931 to add Sidebar to sm Formula editor

Version: 7.3.6.1 (x64) / LibreOffice Community
Build ID: 92b673af3a5e8f7cf4716be88dfaca424612f244
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 3 Mike Kaganski 2022-08-26 14:57:50 UTC
FTR: the problem of incorrect positioning of the ruler was exactly the same in OOo 3.2.0. Also same in my testing on Ubuntu.
Comment 4 V Stuart Foote 2022-08-26 16:05:37 UTC
(In reply to Mike Kaganski from comment #3)
@Mike, thanks for having a look back. At the moment on system I have at hand I only had back to 7.3.6.1 to work against.
Comment 5 QA Administrators 2024-08-26 03:15:46 UTC Comment hidden (obsolete)
Comment 6 V Stuart Foote 2024-08-26 12:15:10 UTC
Issue of misaligned horizontal ruler (shifted to right) remains during OLE sm Formula input. On return to writer document, the ruler is restored and the OLE sm formula is correctly positioned on the ruler when its object is focused.

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f9b5dad09dbdd56ff064096695a946b03e9e2914
CPU threads: 8; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded