Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
Hi
Is there a way to get the client screen resolution on Load of Mashup, such that based on it, Mashup made for that particular Screen resolution can be loaded.
As we know a perfect responsive Mashup can't be made since there are less Responsive Widgets present in Thingworx, eventually end up showing the scroll bars in the Mashup.
Thanks,
Solved! Go to Solution.
In ThingWorx 9.0, I'm able to access screen.width and screen.height in an Expression function:
console.log("Width: " + screen.width);
console.log("Height: " + screen.height);
That may help
-Nick
In ThingWorx 9.0, I'm able to access screen.width and screen.height in an Expression function:
console.log("Width: " + screen.width);
console.log("Height: " + screen.height);
That may help
-Nick
@nmilleson You are awesome, Thank you !
Thanks,
Out of curiosity, how will mashup screen resolution will help in the context of a mobile device like Huawei P30 Pro which has a 1080 x 2340 resolution (close to laptop)?
Hi @VladimirRosu ,
So Team tried a lot to create a Responsive Mashup which gets adjusted to any resolution, but label, Buttons are not responsive and showing scroll bars, I agree that this Screen resolution will not help, as of now to do a workaround we are building based on few Resolutions of Client Displays, Meanwhile R&D Team will fix things.
Thanks,