Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsRow height and icon scaling in Nattable with eclipse 19-09
https://www.eclipse.org/forums/index.php/mv/msg/1100612/1814877/#msg_1814877
I have just updated the to the latest nattablev1.6 and eclipse-19-09, i am seeing a distortion of icons due to resizing and height of rows also changed, along with the font size.
Regards,
Abhishek]]>Abhishek Chakraborty2019-09-21T09:34:17-00:00Re: Row height and icon scaling in Nattable 1.6.0 vs 1.5
https://www.eclipse.org/forums/index.php/mv/msg/1100612/1814887/#msg_1814887
We fixed some scaling issues with NatTable 1.6. So maybe it is related to that if you have enabled scaling on your system. ]]>Dirk Fauth2019-09-21T15:27:08-00:00Re: Row height and icon scaling in Nattable 1.6.0 vs 1.5
https://www.eclipse.org/forums/index.php/mv/msg/1100612/1814892/#msg_1814892
Thanks again, yes now I have reverted back to v1.5 , but the scaling problem is still present, I have check out nattable branch with tag 1.5.0 , and use eclipse 19-09 to run the product. the result is on the left side, whereas the samples application downloaded is in the right side of the attached image [Comparision_Nattable.png], I think scaling is done automatically, i have not changed the setting in ubuntu .
See the size of filter icon that is also distorted.]]>Abhishek Chakraborty2019-09-21T19:27:56-00:00Re: Row height and icon scaling in Nattable 1.6.0 vs 1.5
https://www.eclipse.org/forums/index.php/mv/msg/1100612/1814893/#msg_1814893
]]>Abhishek Chakraborty2019-09-21T19:50:44-00:00Re: Row height and icon scaling in Nattable 1.6.0 vs 1.5
https://www.eclipse.org/forums/index.php/mv/msg/1100612/1814894/#msg_1814894
Dirk Fauth2019-09-21T21:59:02-00:00Re: Row height and icon scaling in Nattable 1.6.0 vs 1.5
https://www.eclipse.org/forums/index.php/mv/msg/1100612/1815107/#msg_1815107
https://bugs.eclipse.org/bugs/show_bug.cgi?id=551456]]>Abhishek Chakraborty2019-09-25T14:12:30-00:00Re: Row height and icon scaling in Nattable 1.6.0 vs 1.5
https://www.eclipse.org/forums/index.php/mv/msg/1100612/1819124/#msg_1819124
https://www.eclipse.org/forums/index.php?t=usrinfo&id=139646&
I believe the issue is related to GuiHelper class also, as it try to find out the DPI and the new Device.java class the getScreenDPI is returning more accurate number 161 in my box, for 4K resolution, for which there is no image present org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/images
Point getScreenDPI () {
int dpi = 96; //default value
if (GTK.GTK_VERSION >= OS.VERSION(3, 22, 0)) {
long display = GDK.gdk_display_get_default();
long pMonitor = GDK.gdk_display_get_primary_monitor(display);
if (pMonitor == 0) {
pMonitor = GDK.gdk_display_get_monitor(display, 0);
}
int widthMM = GDK.gdk_monitor_get_width_mm(pMonitor);
if (widthMM == 0) return new Point (dpi, dpi);
int scaleFactor = GDK.gdk_monitor_get_scale_factor(pMonitor);
GdkRectangle monitorGeometry = new GdkRectangle ();
GDK.gdk_monitor_get_geometry(pMonitor, monitorGeometry);
dpi = Compatibility.round (254 * monitorGeometry.width * scaleFactor, widthMM * 10);
}
return new Point (dpi, dpi);
}]]>Abhishek Chakraborty2020-01-08T12:23:40-00:00Re: Row height and icon scaling in Nattable 1.6.0 vs 1.5
https://www.eclipse.org/forums/index.php/mv/msg/1100612/1819127/#msg_1819127
Dirk Fauth2020-01-08T13:05:51-00:00Re: Row height and icon scaling in Nattable 1.6.0 vs 1.5
https://www.eclipse.org/forums/index.php/mv/msg/1100612/1819137/#msg_1819137
Is image size is also affecting the row height, as I have disabled all the images and but still the row height is calculated to be higher?]]>Abhishek Chakraborty2020-01-08T15:17:05-00:00Re: Row height and icon scaling in Nattable 1.6.0 vs 1.5
https://www.eclipse.org/forums/index.php/mv/msg/1100612/1819140/#msg_1819140
Dirk Fauth2020-01-08T16:55:52-00:00Re: Row height and icon scaling in Nattable 1.6.0 vs 1.5
https://www.eclipse.org/forums/index.php/mv/msg/1100612/1819163/#msg_1819163
More accurate calculation for DPI is creating all these behaviour. Do you plan to provide a fix for this or any alternative though which i can override the sizeConfig?]]>Abhishek Chakraborty2020-01-09T08:24:48-00:00Re: Row height and icon scaling in Nattable 1.6.0 vs 1.5
https://www.eclipse.org/forums/index.php/mv/msg/1100612/1819166/#msg_1819166
Abhishek Chakraborty2020-01-09T08:52:26-00:00Re: Row height and icon scaling in Nattable 1.6.0 vs 1.5
https://www.eclipse.org/forums/index.php/mv/msg/1100612/1819171/#msg_1819171
You should be able to change the scaling by executing a ConfigureScalingCommand with different values to change the scaling behavior. ]]>Dirk Fauth2020-01-09T10:48:52-00:00