You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 1.5.0-rc1, syiro.device.height and syiro.device.width were created to provide a method to get accurate available screen dimensions.
As it stands now, this is done via a MutationObserver that automatically triggers syiro.device.FetchScreenDetails() when the first Element is added the page (since height isn't able to be accurately calculated until there are Elements on the page) and then automatically removes itself.
Of course, this means that browsers that do not support MutationObserver do not accurately provide dimensions. This obviously needs to be resolved (most likely with an automatically clearing WindowTimer and using window.setTimeout()).
The text was updated successfully, but these errors were encountered:
….Detect() and using syiro.device.SupportsMutationObservever. Implement though untested fix for resolving issue #2, syiro.device heigh/width not updating on non-MutationObserver-supported browsers.
In 1.5.0-rc1,
syiro.device.height
andsyiro.device.width
were created to provide a method to get accurate available screen dimensions.As it stands now, this is done via a MutationObserver that automatically triggers
syiro.device.FetchScreenDetails()
when the first Element is added the page (since height isn't able to be accurately calculated until there are Elements on the page) and then automatically removes itself.Of course, this means that browsers that do not support MutationObserver do not accurately provide dimensions. This obviously needs to be resolved (most likely with an automatically clearing
WindowTimer
and usingwindow.setTimeout()
).The text was updated successfully, but these errors were encountered: