Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Simple tab area moves down opening a view in BenchLayoutData
Simple tab area moves down opening a view in BenchLayoutData [message #1865391] Thu, 02 May 2024 04:49 Go to next message
Eclipse UserFriend
Hello,

if I open a view programmatically within benchlayout of the desktop (in the east). Than any tab that opens (e. g. a form to create a new entry) - is moved down under the header instaed of the default position in the header). If I close the view, the tab returns to it's old position.

Is there any way to keep the position of the tab on the top?

Greetings & thanks!
Re: Simple tab area moves down opening a view in BenchLayoutData [message #1865739 is a reply to message #1865391] Fri, 10 May 2024 03:15 Go to previous messageGo to next message
Eclipse UserFriend
Does nobody have a solution? Maybe my configuration of the desktop will help:
setBenchLayoutData(
new BenchLayoutData()
.withWest(new BenchColumnData().withInitial(1).withRelative(true).withGrow(0).withShrink(0))
.withCenter(new BenchColumnData().withInitial(1).withRelative(true).withGrow(0).withShrink(-1))
.withEast(new BenchColumnData().withInitial(500).withRelative(false).withGrow(0).withShrink(0)));


I open the new view on VIEW_ID_E. If I open the new view on VIEW_ID_CENTER, the layout remains as desired. It is the case that as soon as the view is opened int the VIEW_ID_E, the area of the desktop is reduced by the height of the header.

[Updated on: Fri, 10 May 2024 03:58] by Moderator

Re: Simple tab area moves down opening a view in BenchLayoutData [message #1865742 is a reply to message #1865739] Fri, 10 May 2024 03:30 Go to previous messageGo to next message
Eclipse UserFriend
Here a few pictures:
index.php/fa/44301/0/
index.php/fa/44304/0/
index.php/fa/44307/0/

[Updated on: Fri, 10 May 2024 04:36] by Moderator

Re: Simple tab area moves down opening a view in BenchLayoutData [message #1865787 is a reply to message #1865742] Sun, 12 May 2024 16:24 Go to previous message
Eclipse UserFriend
Hi,

this is expected behavior. I can explain the idea behind it: if you open a form in another area and that form has a tab, its tab area should be on the same level as the tab area on the center area. Your form on the right does not have a tab because it has no title and no icon, so I agree with you it is confusing that the tab area of the center tab box moves down.
There is not a property to disable that behavior. But it should be possible to adjust the behavior by overriding HeaderTabBoxController, as you have already tried according to your other post.
Previous Topic:Make changes in .ts files
Next Topic:Form-based authentication on production environment
Goto Forum:
  


Current Time: Sun Jun 15 05:57:01 EDT 2025

Powered by FUDForum. Page generated in 0.05556 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top