Resize frames on Safari / iPhone

I like to bring the old intranet app to the iPhone. The function to hide the menu area that is in the frame is turned on:

<frameset id="myFrameSet" cols="150,*">
    <frame id="menuFrame" SRC="menu.aspx" />
    <frame id="mainFrame" SRC="main.aspx" />
</frameset>

The menu contains an icon that smoothes the menu frame to a minimum. For this, I use this JavaScript expression:

top.document.getElementById('myFrameSet').cols = "20,*";

This works well in all modern browsers. But not Safari on the iPhone or iPad. Debugging this seems to correctly modify the "cols" attribute, but the frame size remains where it was before.

Any suggestions on this? Or any other way to resize the client part of the frame size?

+3
source share
1 answer

, , . - , .

<div> , CSS position:fixed; top:0;, . JS div. , .

0

Source: https://habr.com/ru/post/1788981/


All Articles