Sunday, 11 March 2012

Problem with safari


hello,
i'm coding layout safari 5.1 on mac os 10.7.1 , know if faced problems frames.
i've got page frame2.htm works fine individually if put inside frameset(see framesetbug2.html) scrollbars don't show anymore.
appears if try context of big canvas(>100px*100px) inside frame.
have solution rid of problem ?

framesetbug2 :
code:
  <frameset rows="30%,70%">  	 <frame src="frame1.htm" name="top" title="topcontent" id="top">  	</frame>  	<frame src="frame2.htm" name="main" title="maincontent" id="main">  	</frame>  </frameset>  
frame2 :
code:
  <head></head>    <body>    <div style="left:100px;position:absolute;width:200px;height:200px;border:1px solid black;">    <canvas id="mycanvas" height="200" width="200"></canvas>    </div>        <div style="border:1px solid black;position:absolute;width:200px;height:75px;top:300px;left:100px;overflow-y:scroll;overflow-x:hidden;">    <div style="position:absolute;width:200px;height:30px;background-color:red;">div1</div>  <div style="position:absolute;top:30px;width:200px;height:30px;background-color:blue;">div2</div>  <div style="position:absolute;top:60px;width:200px;height:30px;background-color:green;">div3</div>  <div style="position:absolute;top:90px;width:200px;height:30px;background-color:yellow;">div4</div>  <div style="position:absolute;top:120px;width:200px;height:30px;background-color:violet;">div5</div>    </div>        <script language="javascript">  var canvasgetter=document.getelementbyid("mycanvas");  var contextgetter=canvasgetter.getcontext("2d");  console.log(contextgetter);  </script>    </body>  
frame1 :
code:
  <head></head>    <body>  <div style="font-size:40px;">  frame1  </div>  </body>    
 



Forums Macs macOS Older OS X Versions Mac OS X Lion (10.7)


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment