I am developing a tablet-oriented theme that inherits the OutSystemsUI (ver.2.14.0) theme in Reactive development.
The default desktop and tablet screen width boundary of OutSystemsUI is 1024px, and
since the tablet screen width I am considering is 1080px, it will be judged as a desktop if left as default.
I used the SetDeviceBreakpoints action to change the settings, but
when I tested it on a real tablet, it was judged as a desktop, not a tablet.
There is a possibility that this phenomenon is a bug, so I am separately contacting support.
If this issue cannot be resolved, I am considering adding a tablet class to the body tag by
deleting the desktop class with JS and adding a tablet class, but is there a problem?
I feel there might be a risk myself, but I can't find any concrete evidence.
If anyone has any knowledge on this, please post.
Hello @ayumu inomata
A couple of questions:
SetDeviceBreakpoints
OnApplicationReady
Cheers,GM
Thank you for your answer.
I have also conducted verification using the SetDeviceBreakpoints client action in OnApplicationReady.
The verification screen I created is as follows.
Under the following conditions, I am getting the expected results.
I tested it on an iPad (9th generation).
→I received an answer from support.
This behavior is caused due the RPM-1764, already solved on 11.25 platform version, that even applying the new classes, the old classes are never removed from the body HTML element; (RPM-1764
registerDeviceClassGetter does not apply the new breakpoints immediately)
A workaround was introduced and I am verifying it.
I received an answer from support.
Editing the body tag is not recommended. It may cause conflicts within the system and may not be a reliable solution in the long run.