Hello,
Version info
Firefox 94.0.1 (64-bit)
SmartGWT v12.1p_2021-02-23
SmartClient Version: v12.1p_2021-02-23/Enterprise Deployment
Problem
We noticed some strange drawing behavior specifically to firefox where the root cause was found to be calling canvas.setStyleName("someStyle") to early.
Not calling setStyleName at all did not produce this behavior but that is not an option for us.
Calling setStyleName with some non existing css class name also caused the behavior.
The result was part of the layout going out to far right/left and cutting off as seen in this screenshot.
I took a look at the SmartClient js source code and noticed another method is called when calling setStyleName, namely
where I also saw some
implementation, not sure why or what it does.
Our Workaround
I stopped debugging the smartclient js code and tried
in our code which did the trick.
Let me know if I can be of more assistance or provide more information.
Regards,
Jeno
Version info
Firefox 94.0.1 (64-bit)
SmartGWT v12.1p_2021-02-23
SmartClient Version: v12.1p_2021-02-23/Enterprise Deployment
Problem
We noticed some strange drawing behavior specifically to firefox where the root cause was found to be calling canvas.setStyleName("someStyle") to early.
Not calling setStyleName at all did not produce this behavior but that is not an option for us.
Calling setStyleName with some non existing css class name also caused the behavior.
The result was part of the layout going out to far right/left and cutting off as seen in this screenshot.
I took a look at the SmartClient js source code and noticed another method is called when calling setStyleName, namely
Code:
adjustOverflow : function (reason, delayed, fromRedraw) {
Code:
isc.Browser.isMoz
Our Workaround
I stopped debugging the smartclient js code and tried
Code:
mainLayout.addDrawHandler[I]([/I]ignored -> mainLayout.addStyleName[I]([/I]styleName[I]))[/I];
Let me know if I can be of more assistance or provide more information.
Regards,
Jeno
Comment