Skip to main content
eytanrose
Inspiring
March 28, 2017
Answered

Responsive element doesn't resize on orientation change

  • March 28, 2017
  • 1 reply
  • 339 views

I made an element in Animate (html canvas) that is integrated in a website using WordPress.

The element is responsive, and resizes correctly when I resize the browser or when it loads to a mobile devices.

But when I change the orientation of the device, the element doesn't resize to fit the screen like it's meant to, unless I refresh (reload).

changing the device's orientation back and forth from portrait to landscape and back might make it resize, but that's obviously not good enough.

    This topic has been closed for replies.
    Correct answer macpawel

    It's a good question. I afraid you didn't use any detection for rotation. I'm (not sure about it) think that default resonsive file from Animate cant detect rotation event. If you reload page your design fit new layout and thats all.

    It's not real resonsive feature in Animate

    Pawel

    1 reply

    Legend
    March 28, 2017

    How are you detecting resize events?

    macpawel
    macpawelCorrect answer
    Participating Frequently
    March 28, 2017

    It's a good question. I afraid you didn't use any detection for rotation. I'm (not sure about it) think that default resonsive file from Animate cant detect rotation event. If you reload page your design fit new layout and thats all.

    It's not real resonsive feature in Animate

    Pawel