Bug 50856

Summary: Resizing Start Center window sometimes screws up control locations or background
Product: LibreOffice Reporter: Fabrizio Marcotulli <fabriziomarcotulli>
Component: UIAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WONTFIX    
Severity: normal CC: bugs, pjpreilly, thb, timofeev.i.s
Priority: medium    
Version: 3.4.4 release   
Hardware: Other   
OS: All   
Whiteboard: BSA
Crash report or crash signature: Regression By:
Attachments: A screenshot of the shifted icons
(1) First visual problems appear if I make the window very narrow ...
(2) ... and the problems stay if I resize the (narrow) window wildly
(3) ... or shrink it again wildly.
(4) However, the controls are fully functional (this is why I think the background is wrong, not the controls)
bug reproduced using Ubuntu precise
crash dump

Description Fabrizio Marcotulli 2012-06-07 12:52:57 UTC
Created attachment 62763 [details]
A screenshot of the shifted icons

Problem description: 

Steps to reproduce:
1. Open Libreoffice
2. Maximize the window (or change window size)
3. see icons shift

Current behavior: I maximized the window on a very large monitor and the i cons to select the type of document that I want to create move outside of the white box that contains them. The effect disappears if I cmd-tab out of and back into the program

Expected behavior: I expect the icons to stay within the white square background whenever I resize the window

Platform (if different from the browser): 
              
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.55.3 (KHTML, like Gecko) Version/5.1.5 Safari/534.55.3
Comment 1 Andras Timar 2012-06-09 04:07:05 UTC
I can't reproduce it on Windows and Linux. Mac OS X only?
Comment 2 Roman Eisele 2012-06-14 08:22:13 UTC
NOT REPRODUCIBLE with LibreOffice 3.5.4.2 (Build-ID: 165a79a-7059095-e13bb37-fef39a4-9503d18), German langpack installed, on MacOS X 10.6.8 German.

For me, everything works as expected: the welcome screen resizes correctly, the icons move to the correct positions.

Hm ... just two ideas:

1) Maybe a special problem with MacOS X 10.7 (Fabrizio uses 10.7.3)?
-> Could someone else please test on MacOS X 10.7.x?

2) Could this depend on the screen size? I'm at 1680 x 1050 px ... if I interpret Fabrizio's screenshot right, he uses 1920 x 1080 px.
-> Could some developer check if the screen size has some influence on the resizing of the welcome screen? We QA volunteers can't check this ...
Comment 3 Roman Eisele 2012-06-14 08:41:52 UTC
Well ... SORRY! Wait a minute!

I tried it again, and now I got it: If I just maximize the window or resize it to a greater width, nothing strange happens for me (maybe this happens only with an extremely large screen like Fabio's one?!), but I can reproduce the problem if I shrink the window first to a very *narrow* width first (so that not all controls of the welcome window fit into the window) and then resize the window wildly: now I also see fany things! I will attach some screenshots.

So (sorry again!), indeed

* REPRODUCIBLE with LibreOffice 3.5.4.2 (Build-ID:
165a79a-7059095-e13bb37-fef39a4-9503d18), German langpack installed, on MacOS X
10.6.8 German.

* REPRODUCIBLE LibreOffice 3.6.0beta1 (Build ID: 1f1cdd8), German langpack installed, on MacOS X
10.6.8 German.


Two points which could be important:

1) For me, all these strange things disappear if I resize the window again very slightly -- just two px wider or narrower, and the window looks fine again. However, if after that I resize the window again wildly, i.e. if I make it very narrow again, the funny things come back.

This seems to be a hint that there is just a little redraw problem -- i.e., sometimes after a "wild" resize the window is not redrawn correctly, and another, slight resize is necessary to make the complete window redraw correctly But:

2) If this is just a redraw problem, it must be a problem with the redraw of the background of the window, i.e. with the white rectangle, its shadow and the LibreOffice logo, not with the icons/controls ("Open ...", "New Text document", etc.), because if I move the curser over any of the controls I notice that they highlight correctly in place and are fully functional; so, what's wrong, is rather the background than the icons/controls.
Comment 4 Roman Eisele 2012-06-14 08:42:47 UTC
Created attachment 63025 [details]
(1) First visual problems appear if I make the window very narrow ...
Comment 5 Roman Eisele 2012-06-14 08:43:53 UTC
Created attachment 63026 [details]
(2) ... and the problems stay if I resize the (narrow) window wildly
Comment 6 Roman Eisele 2012-06-14 08:44:24 UTC
Created attachment 63027 [details]
(3) ... or shrink it again wildly.
Comment 7 Roman Eisele 2012-06-14 08:45:14 UTC
Created attachment 63028 [details]
(4) However, the controls are fully functional (this is why I think the background is wrong, not the controls)
Comment 8 Roman Eisele 2012-06-14 08:52:54 UTC
(The correct name for the window in question is "Start Center". Because of this and because of my own observations I changed the Summary.)

Set Status to NEW.

@Thorsten Behrens:
Given the fact that Andras (see comment #2) could not reproduce this on Linux and Windows, this may be a MacOS-only (re)drawing problem. Could you have a look into it? It is a minor issue, of course, but I agree to Fabrizio that it is somewhat irritating. Especially new users could be confused and think of our application as "unprofessional" or "broken" ...
Comment 9 Fabrizio Marcotulli 2012-06-14 09:53:40 UTC
Created attachment 63037 [details]
bug reproduced using Ubuntu precise

I reproduced the bug on ubuntu using libreoffice 3.5.3.2 ( it should be the version on the software center) To do this I made the windows very small and then maximized the window much like Roman did. The effect is very small, so that Andras may have missed it if he just maximized the window like I originally suggested. I circled the icons that are outside of the white box for illustration purposes.
Comment 10 Roman Eisele 2012-06-14 10:20:31 UTC
(In reply to comment #9)
> I reproduced the bug on ubuntu using libreoffice 3.5.3.2 ( it should be the
> version on the software center) [...]

Thank you very much for your additional investigation! So, this is a general UI problem, not MacOS only (but maybe more visible on MacOS?); therefore I change the Platform to "All".

I have also done some additional testing. I can already reproduce this problem with LibreOffice 3.4.4 release, again on MacOS X. Therefore I set the Version field to that version. (I don't have an older version than 3.4.4 to test.)
Comment 11 Fabrizio Marcotulli 2012-06-14 11:27:23 UTC
I tried to reproduce the bug on windows, but I could not. I used the following versions of libreoffice as shown in the "about" menu option:

LibreOffice 3.4.3 
OOO340m1 (Build:302)

LibreOffice 3.5.4.2 
Build ID: 165a79a-7059095-e13bb37-fef39a4-9503d18

This may mean that it's a problem only on Mac and Linux (maybe X.org related? I don't know if Mac OS still uses that) or maybe it could manifest itself on windows if the screen is different from mine.
Comment 12 Roman Eisele 2012-06-17 00:25:25 UTC
(In reply to comment #11)
> I tried to reproduce the bug on windows, but I could not.

I tried the same with LibreOffice 3.5.4.2 (Build ID: 165a79a-7059095-e13bb37-fef39a4-9503d18) on Windows XP -- not reproducible, everything fine there.


> This may mean that it's a problem only on Mac and Linux

I have the same impression. (But we need to stick with the Platform setting "All", because we don't have a special Mac+Linux entry.)


> (maybe X.org related? I don't know if Mac OS still uses that)

LibreOffice for MacOS X does not use X11 anymore, but the native Aqua UI; nevertheless, there may be some common code, because MacOS X is (like Linux) a Unix-like (unixoide) operating system.
Comment 13 Roman Eisele 2012-06-19 06:28:11 UTC
@Ivan Timofeev:
You have fixed a lot of UI problems in LibreOffice. Now this is yet another general UI bug, present both on MacOS X and Ubuntu (see comment #9). It is not a terrible issue, but still irritating, and may make look LibreOffice "unprofessional". Could you have a look at this problem?

Thank you very much in advance!
Comment 14 Ivan Timofeev (retired) 2012-06-28 11:12:12 UTC
I reproduce that on Ubuntu the controls are shifted down a bit in the *maximized* window (hmm, interesting), but according to the screenshots there is a different (repaint?) problem on MacOS X. I don't know how to fix it.
Comment 15 Ivan Timofeev (retired) 2012-07-01 00:43:01 UTC
BTW, I accidentally reproduced similar effect on Ubuntu: in vcl/source/window/window.cxx, method Window::ImplInit I changed the resize timer timeout from 50 to 5 in this line:
  mpWindowImpl->mpFrameData->maResizeTimer.SetTimeout( 50 );
and then I got rid of it that effect by removing this call from ImplHandleResizeTimerHdl:
  mpWindowImpl->mpFrameData->maPaintTimer.GetTimeoutHdl().Call( NULL );

HTH...
Comment 16 Phil Reilly 2012-09-15 15:38:26 UTC
*** Bug 54921 has been marked as a duplicate of this bug. ***
Comment 17 Phil Reilly 2012-09-15 15:51:08 UTC
Cannot reproduce on PPC G4....Intel only.
Comment 18 Phil Reilly 2012-09-15 20:55:36 UTC
This occurs on MacBook 3,1 Lion 10.7.5 2.2ghz
This does NOT happen on MacBook 4,1 Snow Leopard 10.6.8 2.4ghz
Comment 19 Phil Reilly 2012-09-15 20:56:38 UTC
My testing is of LO 3.6.1.2 newest release as of this post.
Comment 20 Phil Reilly 2012-09-15 23:31:00 UTC
on 3.6.2.1 when the startcenter is incorrectly drawn if you do an "about LibreOffice" the tainted screen snaps back to correct under the About screen. For what it's worth.
Comment 21 Phil Reilly 2012-09-15 23:34:14 UTC
Created attachment 67220 [details]
crash dump
Comment 22 Phil Reilly 2012-09-15 23:36:06 UTC
previous dump is associated with:
after installing 3.6.2.1 over 3.6.1.2 and clicking the green ball on the startcenter the FIRST time it crashed.
Comment 23 Phil Reilly 2012-09-23 15:05:50 UTC
LION related?
Comment 24 Roman Eisele 2012-09-23 18:04:50 UTC
(In reply to comment #23)
> LION related?

The original problem -- “resizing the Start Center window sometimes screws up control locations or background” is not limited to Lion or any other Mac OS X version; I can reproduce it on Mac OS X 10.6.8, see my comments and screenshots, and Fabrizio Marcotulli has reproduced it under Ubuntu (see comment #9).

But the crash (commment #21) is a special issue, and might be very well limited to a special OS version or other special circumstances, e.g. the use of Apple’s “Enable access for assistive devices” or other “Universal Access” (= accessibility) settings.
Comment 25 Stefan Knorr (astron) 2014-02-03 20:18:30 UTC
Marking as WONTFIX.

4.2.0 has moved to a new start center implementation that is significantly different, thus this bug most likely does not exist anymore in newer versions.