https://bugs.freedesktop.org/show_bug.cgi?id=54930

             Bug #: 54930
           Summary: EDITING Report builder: mouse-resize control allows to
                    move top of control to out of section
    Classification: Unclassified
           Product: LibreOffice
           Version: 3.6.0.0.alpha1
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Keywords: regression
          Severity: major
          Priority: medium
         Component: Database
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
        Depends on: 44721
            Blocks: 37361, 52471


+++ This bug was initially created as a clone of Bug #44721 +++

When resizing a control with the mouse, it lets one go above the top of the
section. This creates a situation that is rife for bugs, since code usually
expects the y coordinate of a control to be (not-strictly) positive!

Compare with moving a control with the mouse, where the move stops at the
boundary (position y coordinate=0).

I tried to do "the same as for move" in the resize, but it is much more
complicated, since the resize does not get as arguments straight "this is your
new size", but a reference point (?) and fractions of what multiple of the
distance to that reference point the border should be moved. Not sure why it is
so indirect.

I tried to hack up something, herewith attached, but this affects also legal
resizes near the top of the section, so my math must be off somehow. Calculated
as reverse of the formula in svx/source/svdraw/svdtrans.cxx:void ResizeRect

I'm about to go to vacation, so dumping my current work so that I don't forget.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to