ucfopen / Materia-Server-Client-Assets

Common Javascript and CSS resources needed for Materia and the Materia Widget Development Kit.
https://ucfopen.github.io/Materia-Docs/
GNU Affero General Public License v3.0
3 stars 10 forks source link

Enable widgets to change the window's scroll position. #21

Closed FrenjaminBanklin closed 5 years ago

FrenjaminBanklin commented 6 years ago

Currently it's possible for widget engines to change their height on demand, but it is not possible for them to scroll to a specific position - in the case of Enigma, for example, the frame containing the player can be incredibly tall but there isn't a way to scroll automatically up/down due to CORS restrictions. Having an engine method like setHeight that can tell the parent window to scroll to a specific location could potentially solve this problem.