Community
Participate
Working Groups
The up/down buttons are placed next to the input field, even when there is more space, see attached screenshot.
Created attachment 142373 [details] Screenshot
Created attachment 142859 [details] Proposed patch The patch fixes also the vertical sizing of up/down buttons when widget is higher than preferred size (there was a different behavior compared with SWT).
Applied patch to CVS HEAD.
I would like to reopen the bug. At least the horizontal positioning of the up/down buttons is wrong with RAP 2.1.x, when the widget size is larger than the preferred size. The behaviour is eratic. The first time a page is rendered, the buttons are placed correctly. The second time the page renders, the buttons are placed next to the input fields. When opening a modal dialog, the buttons jump back to the right. This has been tested with RAP 2.1.1 in IE10, Chrome30 and FF24.
(In reply to Steffen Eichenberg from comment #4) > I would like to reopen the bug. At least the horizontal positioning of the > up/down buttons is wrong with RAP 2.1.x, when the widget size is larger than > the preferred size. > > The behaviour is eratic. The first time a page is rendered, the buttons are > placed correctly. The second time the page renders, the buttons are placed > next to the input fields. When opening a modal dialog, the buttons jump back > to the right. > > This has been tested with RAP 2.1.1 in IE10, Chrome30 and FF24. Could you provide a screenshot to visualize the problem?
Created attachment 236532 [details] Editor rendered the first time. Everything is fine
Created attachment 236533 [details] Editor rendered the second time. Buttons positions are wrong. - The user logged out from the application, i.e. the EntryPoint.createUI() method terminates. - The user creates a new Session by entering the EntryPoint.createUI() method a second time. Now the editor is not rendered correctly.
Created attachment 236534 [details] A modal dialog has been opened. Editor seems to relayout correctly - Starting with the wrong positioning of the up/down Buttons, the user opened a modal dialog (YesNoDialog). When opening the dialog, the UI seems to refresh. Now the buttons are again at their correct position. You can repeat the loop of the last two screenshots (logout-login, dialog).
Screenshots added - Step 1: Editor rendered the first time. Everything is fine - Step 2: Editor rendered the second time. Buttons positions are wrong. - Step 3: A modal dialog has been opened. Editor seems to relayout correctly
(In reply to Steffen Eichenberg from comment #9) > Screenshots added > > - Step 1: Editor rendered the first time. Everything is fine > - Step 2: Editor rendered the second time. Buttons positions are wrong. > - Step 3: A modal dialog has been opened. Editor seems to relayout correctly I will reopen the bug.
Steffen, I can't reproduce it with our Examples Demo and RAP from master. Could you create a simple snippet/project that demonstrate the issue?
Steffen, which layout is used for DateTime sizing in the faulty screenshot?
The layout is a GridLayout with GridData.grabHorizontal=true. We are working on a small demo. The error does not occur in the controls demo. It *seems* to only occur when using perspectives, the control being in an EditorPart and the EditorPart having a ToolBar (build by a contributor and using ToolBarManager). Everything works fine, as long as the editor does not have a ToolBar. But we observed this only in a bigger context. Now we are trying to dumb that down the the absolute necessary parts.
Waiting for your snippet...
Created attachment 236705 [details] Demo Code for the DateTime layout bug It took us some time to isolate this unexpected behavior. Our application is fairly complex, with parts coming from a framework and other parts coming from product development. The code contains two entry points. The first entry point demonstrates the behavior in a simple shell, the second in a workbench (we wanted to know if there are any differences). The behavior can be observed in both cases. - start the application - in case of workbench entry point, press the button in the left view to open an editor - DateTime renders fine - press the "Refresh me" button. Rendering is wrong. - press the "Dialog me" button. A dialog opens. In the background the DateTime is rendered correctly again. This works exactly one time after server restart! You can find the UI and the layouts in the class datetimeproject.TestUI.
Thanks for the snippet. Fixed in master with commit eeac61878a868975493ee635249cc9e2fa42c97a.
Created attachment 236724 [details] Patch against 2.1-maintenance branch