开发者

How can I disable resize in a View

开发者 https://www.devze.com 2023-03-26 12:56 出处:网络
My main window looks like this: ____________________________ |Upper View| |___________________________| |Left View|Editor|Right view|

My main window looks like this:

____________________________
|Upper View                 |
|___________________________|
|Left View|Editor|Right view|
|         |      |          |
|         |      |          |
|         |   开发者_如何学编程   |          |

and I want to make the upper view not resizable.

The Perspective.createInitialLayout is:

layout.addStandaloneView(URLView.ID, false, IPageLayout.TOP, 0f, layout.getEditorArea());
layout.addStandaloneView(ServicesView.ID, false, IPageLayout.LEFT, 0.2f, layout.getEditorArea());
IFolderLayout folder = layout.createFolder("responses", IPageLayout.RIGHT, 0.6f, layout.getEditorArea());
folder.addPlaceholder(ResponseView.ID + ":*");
folder.addView(ResponseView.ID);
layout.getViewLayout(ResponseView.ID).setCloseable(true);

Is there any way to do it? Thank you!


There is no easy way to make a view non-resizable. A possible way could be to introduce a banner to place the content of that view inside this banner. I've written some time ago a small example

0

精彩评论

暂无评论...
验证码 换一张
取 消