Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 05:29 PM
CJM
Guest
 
Posts: n/a
Default IE Scrollbars

I've been trying to tweak the design of a few pages in one of my ASP apps...

I'm making sure that the layout is reasonable for resolutions between
800x600 and 1024x768. Since it's almost all forms (rather than text) it
takes a bit of extra effort to find the right balance.

At the higher resolution, everything is fine. When I reduce the IE window to
800x600 (via bookmarklet), I'm getting both horizontal and vertical
scrollbars; the vertical scrollbars are to be expected since the forms are
longer than the screen, however the forms should be narrow enough to fit
into you typical 800x600 browser window.

Having puzzled over what was taking up the extra horizontal space, after
testing in Mozilla and Opera, I've just realised that the content is how I
want it, but that IE has taken it upon itself to kindly at a horizontal
scrollbar! Mozilla and Opera only show each axis' scrollbar when necessary.
With IE it's all or nothing.

So the question is... can I do anything about this? Or is this a compulsory
IE 'feature'?

Thanks in advance

Chris


  #2  
Old July 20th, 2005, 05:30 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: IE Scrollbars

"CJM" <cjmwork@yahoo.co.uk> wrote:
[color=blue]
>At the higher resolution, everything is fine. When I reduce the IE window to
>800x600 (via bookmarklet), I'm getting both horizontal and vertical
>scrollbars; the vertical scrollbars are to be expected since the forms are
>longer than the screen, however the forms should be narrow enough to fit
>into you typical 800x600 browser window.
>
>Having puzzled over what was taking up the extra horizontal space, after
>testing in Mozilla and Opera, I've just realised that the content is how I
>want it, but that IE has taken it upon itself to kindly at a horizontal
>scrollbar! Mozilla and Opera only show each axis' scrollbar when necessary.
>With IE it's all or nothing.[/color]

Not usually, but in some circumstances.

There are also some bugs in the way IE calculates total page widths
that can cause horizontal scrollbars to appear unexpectedly.
[color=blue]
>So the question is... can I do anything about this? Or is this a compulsory
>IE 'feature'?[/color]

Are you using frames?
Are the pages within the frames using a doctype that triggers
standards mode?
If so then yes, it's all or nothing.

Otherwise post a URL.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>
  #3  
Old July 20th, 2005, 05:30 PM
CJM
Guest
 
Posts: n/a
Default Re: IE Scrollbars


"Steve Pugh" <steve@pugh.net> wrote in message
news:u0hkqvccptfavn6bplbv74ogieain8hglo@4ax.com...[color=blue]
> Are you using frames?
> Are the pages within the frames using a doctype that triggers
> standards mode?
> If so then yes, it's all or nothing.[/color]

Yes, I'm using frames with the 4.01 Transitional DOCTYPE.
[color=blue]
> Otherwise post a URL.[/color]

It's an intranet app. At the moment, I can't even post a mock-up, since all
ftp traffic is currently blocked!

[sigh] I guess I will just have to endure it.

Cheers

Chris


  #4  
Old July 20th, 2005, 05:30 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: IE Scrollbars

"CJM" <cjmwork@yahoo.co.uk> wrote:
[color=blue]
>
>"Steve Pugh" <steve@pugh.net> wrote in message
>news:u0hkqvccptfavn6bplbv74ogieain8hglo@4ax.com.. .[color=green]
>> Are you using frames?
>> Are the pages within the frames using a doctype that triggers
>> standards mode?
>> If so then yes, it's all or nothing.[/color]
>
>Yes, I'm using frames with the 4.01 Transitional DOCTYPE.[/color]

Which 4.01 Transtional Doctype?
Some trigger standards mode and some don't.

Steve


--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>
  #5  
Old July 20th, 2005, 05:30 PM
CJM
Guest
 
Posts: n/a
Default Re: IE Scrollbars

"Steve Pugh" <steve@pugh.net> wrote in message
news:8ulkqvse7r4k6q0u6pgrleh6a5153atkbv@4ax.com...[color=blue][color=green]
> >
> >Yes, I'm using frames with the 4.01 Transitional DOCTYPE.[/color]
>
> Which 4.01 Transtional Doctype?
> Some trigger standards mode and some don't.[/color]

Sorry Steve, I should have been explicit:

With DTD - hence I am triggering Standards Mode

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">


  #6  
Old July 20th, 2005, 05:30 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: IE Scrollbars

"CJM" <cjmwork@yahoo.co.uk> wrote:
[color=blue]
>"Steve Pugh" <steve@pugh.net> wrote in message
>news:8ulkqvse7r4k6q0u6pgrleh6a5153atkbv@4ax.com.. .[color=green][color=darkred]
>> >
>> >Yes, I'm using frames with the 4.01 Transitional DOCTYPE.[/color]
>>
>> Which 4.01 Transtional Doctype?
>> Some trigger standards mode and some don't.[/color]
>
>Sorry Steve, I should have been explicit:
>
>With DTD - hence I am triggering Standards Mode
>
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>"http://www.w3.org/TR/html4/loose.dtd">[/color]

Yeah that will do it.

In Standards mode IE6 treats scrolling="auto" as something that
switches between scrolling="yes" (both scrollbars visible) and
scrolling="no" (no scrollbars visible) as required.

In Quirks mode IE6 treats scrolling="auto" as if it was an unframed
page and includes each scrollbar separately as needed.

There isn't really anything in the spec to support this behaviour:
http://www.w3.org/TR/html401/present...adef-scrolling
so it just has to be put down as one of thise crazy MS things. Unless
anyone knows better?

In your case you can either learn to live with it, or drop the URI
from the doctype, thus triggering Quirks mode and all the other
changes that entails.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>
  #7  
Old July 20th, 2005, 05:30 PM
CJM
Guest
 
Posts: n/a
Default Re: IE Scrollbars

"Steve Pugh" <steve@pugh.net> wrote in message
news:0onkqvk2o9f2ecke079mc6pcl71p8c06g3@4ax.com...
[color=blue]
> There isn't really anything in the spec to support this behaviour:
> http://www.w3.org/TR/html401/present...adef-scrolling
> so it just has to be put down as one of thise crazy MS things. Unless
> anyone knows better?[/color]

I'd be delighted if someone *did* know better, but I suspect not.
[color=blue]
>
> In your case you can either learn to live with it, or drop the URI
> from the doctype, thus triggering Quirks mode and all the other
> changes that entails.
>
> Steve
>[/color]

Seems to be two steps forwards and another backwards.

Going back to quirks mode would be a retrograde step, so we'll suffer the
Standards-mode 'quirks' (Irony?). The system will be replaced within 15mths,
so a no-frames re-write isnt justified.

If anything, it will serve as further justification for avoiding frames -
you wouldnt think I'd be short of ammo on that score, but you havent met my
bosses...!

Cheers

Chris


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles