Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebFrame bottom and right margin hard-coded to 8 pixels?



This works fine for me on TOT, I see the entire area as #C0C0C0. I do know the default margin on the body is around 5-10px, so maybe the Tiger version doesn't support those attributes. I would recommend CSS for setting the margin (see below).

One note, the Safari does not support the scroll attribute. I would recommend <body style="background: black; margin: 0;  overflow: hidden">. The overflow: hidden will prevent the scroll. 

— Timothy Hatcher


On Oct 26, 2006, at 3:59 PM, Rudi Sherry wrote:

I'm working on a WebKit WebView and I want a Flash object to fill the entire view.

It doesn't seem to work: I can't get it to exactly fill the view (I'm on Tiger 10.4.8).

Here is the HTML:

<html>
  <head>
  </head>
  <body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" bgcolor="black" scroll="no">
    <embed  name="SWFObject"
        bgcolor="#C0C0C0"
        width="100%"
        height="100%"
        menu="false"
        loop="false"
        quality="best"
        src=""
        type="application/x-shockwave-flash"
        pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
  </body>
</html>


Notice the "100%" for width and height, and scroll="no".  As I read the documentation, this should fill the entire window.  On Firefox this does.

In Safari or WebKit, I get extra space and a scrollbar on the right, and some extra pixels on the bottom. It seems like there is a hard-coded 8-pixel right and bottom margin.

Is this known or should I submit a bug?

Thanks,
Rudi

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden

References: 
 >WebFrame bottom and right margin hard-coded to 8 pixels? (From: Rudi Sherry <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.