Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Problem with Custom Widgets at higher display scaling
Problem with Custom Widgets at higher display scaling [message #1853073] Thu, 16 June 2022 17:09 Go to next message
Louis Detweiler is currently offline Louis DetweilerFriend
Messages: 91
Registered: August 2017
Member
Hello,

We have implemented several custom widgets for the properties. We ran into a problem where if (on Windows at least) the user sets their display settings to be 125% or 150% scaling, the custom widgets are not given enough room in the properties panel and they overlap each other. (it works fine at 175% scaling)

The attached image 100pScaling is how it looks at 100% scaling, and it is fine.

index.php/fa/42196/0/

The attached image 125pScaling is how it looks at 125% scaling, and you can see that the widgets overlap each other and are not fully displayed.

index.php/fa/42197/0/

Is there a way we can implement something on our end to correct this, or should I submit a bug report?

Thanks,

Louis

[Updated on: Thu, 16 June 2022 17:11]

Report message to a moderator

Re: Problem with Custom Widgets at higher display scaling [message #1853158 is a reply to message #1853073] Tue, 21 June 2022 06:12 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 640
Registered: July 2009
Senior Member
Hi,
We can't seem to reproduce this using the standard widgets.
It's difficult to know if the issue in your custom code without knowing it. The only thing I can think of is: are you using the EEFWidgetFactory to create your widgets?
It inherits from org.eclipse.ui.forms.widgets.FormToolkit which normally ensures all widgets are correctly styled and configured.


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Problem with Custom Widgets at higher display scaling [message #1853208 is a reply to message #1853158] Thu, 23 June 2022 03:13 Go to previous messageGo to next message
Louis Detweiler is currently offline Louis DetweilerFriend
Messages: 91
Registered: August 2017
Member
Thank you for your response.

For most of the widgets, we are using the EEFWidgetFactory gotten from an IEEFFormContainer using the method getWidgetFactory.

However, the tables that are to the left of the buttons are NatTables, which can not be created from the EEFWidgetFactory.

Thanks,

Louis
Re: Problem with Custom Widgets at higher display scaling [message #1853379 is a reply to message #1853208] Thu, 30 June 2022 02:19 Go to previous message
Louis Detweiler is currently offline Louis DetweilerFriend
Messages: 91
Registered: August 2017
Member
For closure, the problem was simply that I was using a height hint for the composite that contained the table and the buttons. Changing this to a minimum height solved the issue.
Previous Topic:Possibility to choose a custom endpoint in an edge?
Next Topic:Double Click supported in sirius-web?
Goto Forum:
  


Current Time: Thu Aug 18 12:09:13 GMT 2022

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

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

Back to the top