Had a bug today related to device rotation and content getting cut - TopicsExpress



          

Had a bug today related to device rotation and content getting cut off and found the solution thanks to Cemre, thought Id share it here: # the problem A video is playing in portrait mode. When fullscreen is triggered, I call Framer.Device.rotateRight() to rotate the device into landscape. The videos content has been rotated, but the players dimensions are being cropped to the dimensions of portrait mode, leaving a large black empty space to the right of the video. (See screenshot) # the solution Opening the DOM inspector or resizing the window fixes the problem, so we just needed to trigger a redraw via Framer.Device._update() after the player element finished animating into place. Hope it helps.
Posted on: Tue, 13 Jan 2015 21:34:18 +0000

Trending Topics



Recently Viewed Topics




© 2015