TalkGraphics.com  

Go Back   TalkGraphics.com > Xara Forums > Talk Web > Web Designer / Xtreme / Designer Pro

Reply
 
Thread Tools Display Modes
  #1  
Old 01 February 2010, 10:45 PM
sadicus sadicus is offline
Member
 
Join Date: Sep 2007
Posts: 159
Question FireFox Pixel shifting left - Scroll Bar

When using * maximize screen mode, FireFox is Pixel shifting the website to the left. due to the Scroll bar opening on some pages

Is there a way to set up the page so it won't react this way?

* (please note: maximize screen mode is not the same as F11 full screen)
__________________
Sadicus
Reply With Quote
  #2  
Old 01 February 2010, 10:55 PM
sledger's Avatar
sledger sledger is offline
Administrator
 
Join Date: Apr 2007
Location: I live in the land down under
XDPro6, XXPro5, XX5, WD5, WD6 X3D6
Posts: 16,426
Default Re: FireFox Pixel shifting left - Scroll Bar

This is really a browser question and not a Xara software one.

There is no way you can prevent scroll bars appearing on any normal site because it is 100% dependent on the visitors screen resolution and/or preference for a maximised window or not.

The only way to prevent scroll bars shifting your page contents is to disable them via javascript, which may make some of your page unreachable by some visitors.
__________________
Designer 6 features summary | I apoligoze for and typographicsal ir smelling errors | XU
Reply With Quote
  #3  
Old 02 February 2010, 12:06 AM
Drwyd's Avatar
Drwyd Drwyd is offline
Member
 
Join Date: Mar 2009
Location: England
XWD5, XX5 & XDP6 (trial)
Posts: 457
Default Re: FireFox Pixel shifting left - Scroll Bar

Would forcing the scrollbar help ?

I think this version works in the 5 major browsers
Attached Files
File Type: web page shift solution2.web (9.0 KB, 25 views)
__________________
Some drink from the fountain of knowledge ... I only gargled.
Reply With Quote
  #4  
Old 02 February 2010, 12:19 AM
jimhanus's Avatar
jimhanus jimhanus is offline
Member
 
Join Date: Oct 2007
Location: Richmond, MI USA
XX5, WD6, XDP6
Posts: 689
Default Re: FireFox Pixel shifting left - Scroll Bar

I use a placeholder named <head> with the text below, then have it repeat on all pages:

<style type="text/css">
html { min-height: 101%; } </style>

This makes a vertical scroll bar whether it's needed or not. I like it because it works for me and is simple. Your results may vary

Jim
Reply With Quote
  #5  
Old 02 February 2010, 12:33 AM
sledger's Avatar
sledger sledger is offline
Administrator
 
Join Date: Apr 2007
Location: I live in the land down under
XDPro6, XXPro5, XX5, WD5, WD6 X3D6
Posts: 16,426
Default Re: FireFox Pixel shifting left - Scroll Bar

Both the same solutions to draw scroll bars regardless, good workaround

Note that IE6/7/8 doesn't really need this, it always draws the scrollbar *area* regardless whether the handle is needed or not.
You can see this in the Xara web preview window.
__________________
Designer 6 features summary | I apoligoze for and typographicsal ir smelling errors | XU
Reply With Quote
  #6  
Old 02 February 2010, 12:36 AM
Drwyd's Avatar
Drwyd Drwyd is offline
Member
 
Join Date: Mar 2009
Location: England
XWD5, XX5 & XDP6 (trial)
Posts: 457
Default Re: FireFox Pixel shifting left - Scroll Bar

Thats the code I use :-) It seems to be the only reliable (simple) method since FF3.6 - 100% height plus an additional pixel for the bottom margin seemed to work fine till then
__________________
Some drink from the fountain of knowledge ... I only gargled.
Reply With Quote
  #7  
Old 02 February 2010, 01:02 AM
Drwyd's Avatar
Drwyd Drwyd is offline
Member
 
Join Date: Mar 2009
Location: England
XWD5, XX5 & XDP6 (trial)
Posts: 457
Default Re: FireFox Pixel shifting left - Scroll Bar

This seems to work better on current versions of browsers, There is no vertical scrolling movement on the shorter pages and the drag bar itself itself is also missing, which looks cleaner. I have not tested it on older versions though.

The code is:-

<style type="text/css">
html { overflow-y: scroll; }
</style>
Attached Files
File Type: web page shift solution3.web (9.0 KB, 19 views)
__________________
Some drink from the fountain of knowledge ... I only gargled.
Reply With Quote
  #8  
Old 02 February 2010, 01:32 AM
sadicus sadicus is offline
Member
 
Join Date: Sep 2007
Posts: 159
Default Re: FireFox Pixel shifting left - Scroll Bar

That is a good workaround! thank you.
__________________
Sadicus
Reply With Quote
  #9  
Old 02 February 2010, 02:48 PM
sadicus sadicus is offline
Member
 
Join Date: Sep 2007
Posts: 159
Question Force Scroll Bar - Overlap page, like Teak set?

This text is over the yellow placeholder and I'm not sure if it's part of the code needed to make the Force Scroll Bar work. It has place holder code associated with it.

The text:
"Force Scroll Bar
Placeholder positioned off page and named <head>
Contains style code.
Can be set to repeat."

has this code:
<style type="text/css">
html {
min-height: 100.5%;
margin-bottom: 1px;
}
</style>


The Placeholder has this code:
<style type="text/css">
html { overflow-y: scroll; }
</style>


1) Are both codes needed? (the code associated with the text, and the placeholder ) or only the placeholder code?

2) Does the placeholder need to overlap the page a little bit?
(like when using tweak tools)
__________________
Sadicus
Reply With Quote
  #10  
Old 02 February 2010, 04:07 PM
Drwyd's Avatar
Drwyd Drwyd is offline
Member
 
Join Date: Mar 2009
Location: England
XWD5, XX5 & XDP6 (trial)
Posts: 457
Default Re: FireFox Pixel shifting left - Scroll Bar

Hi Sadicus

The text over the placeholder is for instruction only and has no effect on the operation of the code.

The first version of the code is one that I have used for a while and seems to work well for multiple browsers and versions thereof.

The second one is a much tidier solution but I have not tested it in anything other than the current versions of the main browsers.

Only one method is needed and the placeholder needs to be off page. As I understand it a placeholder positioned on the page will include the code in the <body> section of the page code instead of the <head> section although naming it <head> may override this.
__________________
Some drink from the fountain of knowledge ... I only gargled.
Reply With Quote
Reply

Bookmarks

Tags
force scrollbars

Thread Tools
Display Modes

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 On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fake scroll bar johne53 Web Designer / Xtreme / Designer Pro 3 26 April 2009 07:13 PM
Scroll Bar in Popup Layer StevenWWinters Web Designer / Xtreme / Designer Pro 1 20 March 2009 01:47 PM
Colour line scroll bar handle sledger Dear Xara.. 2 23 January 2009 08:01 AM
Code Slinger John R: IE Scroll bar colour? Egg Bramhill Off-Topic Chat 7 18 October 2004 09:33 AM
Draggable Scroll Bar Stinger Macromedia Flash 1 23 August 2000 12:03 AM


All times are GMT +1. The time now is 06:37 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
©2006 Xara Group Ltd.