[webkit-dev] disable scroll bars in webView....

Mitz Pettel opendarwin.org at mitzpettel.com
Fri Aug 31 11:50:11 PDT 2007


I think something like

WebView* myWebView;
...
[[[myWebView mainFrame] frameView] setAllowsScrolling:NO];

will do the trick. See <http://developer.apple.com/documentation/Cocoa/Reference/WebKit/Classes/WebFrameView_Class/Reference/Reference.html#//apple_ref/occ/instm/WebFrameView/setAllowsScrolling: 
 >

On Aug 31, 2007, at 9:34 PM, David D. Kilzer wrote:

> If you're going to build your own custom version of WebKit, you  
> could modify
> WebCore/css/html4.css and WebCore/css/quirks.css to include the  
> "overflow:
> hidden;" style on the body tag.  This would have essentially the  
> same effect.
>
> I'm not aware of any "switch" to disable scroll bars completely  
> (although that
> doesn't mean there isn't one).
>
> Dave
>
>
> Kathryn Tate <kathryntate at comcast.net> wrote:
>
>> Actually, yes, I see what you are doing, but I meant something
>> entirely different--kind of strange.
>>
>> Is it possible to disable the scrolling bars WebView in Xcode? (I am
>> asking WebKit group as you have
>> produced the bridge to making browsers).
>>
>> What I am trying to do is create a web browser that is tiny and has
>> no scroll bars--the images
>> would be thumbnails.
>>
>> Thanks, Kathryn
>>
>>
>>
>> On Aug 31, 2007, at 9:54 AM, David D. Kilzer wrote:
>>
>>> Hi Kathryn,
>>>
>>> Are you wanting to do this using HTML?  If so:
>>>
>>> <img src="http://webkit.org/images/icon-gold.png" style="top:
>>> 200px; left:
>>> 200px; position: absolute;">
>>>
>>> To make a containing element not scroll, use the "overflow: hidden"
>>> style (e.g.
>>> to disable scroll bars for the entire page):
>>>
>>> <body style="overflow: hidden;">
>>> <img src="http://webkit.org/images/icon-gold.png" style="top:
>>> 1000px; left:
>>> 200px; position: absolute;">
>>> </body>
>>>
>>> BTW, if you have questions about HTML, neither the webkit-dev list
>>> nor the
>>> xcode-users list is appropriate.  I would suggest the web-dev
>>> mailing list for
>>> that:
>>>
>>> http://lists.apple.com/mailman/listinfo/web-dev
>>>
>>> Dave
>>>
>>>
>>> Kathryn Tate <kathryntate at comcast.net> wrote:
>>>
>>>> Guys,
>>>> Is there a way to disable the scroll bars in WebView so that the
>>>> image is fixed?
>>>>
>>>> Thanks
>>>
>>
>>
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo/webkit-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/webkit-dev/attachments/20070831/5f348f7a/attachment.html


More information about the webkit-dev mailing list