![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
scrollbars are generally not far from 18px, setting the container width to 20px more must satisfy all browsers. snip |
#12
| |||
| |||
|
|
On Nov 3, 1:22 am, SAM wrote: snip scrollbars are generally not far from 18px, setting the container width to 20px more must satisfy all browsers. snip On Windows (and I would be very surprised if it was not also true for most other operating systems) the scroll bar dimensions are user- selectable (The "advanced" option of the "Appearance" tab in "Display Properties"). |
|
The most you can state is the default values, and possibly note that most people have no reason for changing those. On the other hand, I have a tablet PC that I use for note taking and for which I adjusted the scrollbar widths to 24 pixels |
|
because that is about the minimum width that laves the scrollbars operable by finger tip. Given a combination of cheaper hardware and fashion, I would not be at all surprised to see the next few years whiteness a huge growth in the use of tablet/touch-screen PCs, and much configuration to move away from the precision of a mouse pointer. |
#13
| |||
| |||
|
|
Le 11/3/09 1:36 PM, Richard Cornford a écrit : snip Given a combination of cheaper hardware and fashion, I would not be at all surprised to see the next few years whiteness a huge growth in the use of tablet/touch-screen PCs, and much configuration to move away from the precision of a mouse pointer. With a modern "touch" system, no more fingered accessing scrollbars are necessary ... fingers are used as a scroll-wheel |
|
You(you'll?) certainly can reduce your scrollbars to 5px (or 0 ?) to leave more place to the content. |
#14
| |||
| |||
|
|
On Nov 3, 1:01 pm, SAM wrote: Le 11/3/09 1:36 PM, Richard Cornford a écrit : snip |
|
With a modern "touch" system, no more fingered accessing scrollbars are necessary ... fingers are used as a scroll-wheel Not on a drawing/writing surface. In those cases dragging a finger across the surface will make marks or select content. |
|
You(you'll?) certainly can reduce your scrollbars to 5px (or 0 ?) to leave more place to the content. Not if I want to be able to scroll the content. |
#15
| |||
| |||
|
|
"Thomas 'PointedEars' Lahn": Richard Maher wrote: Anyway, cut a long story short, I want what en.wikipedia.org has on its search box. [...] Do I have to add scroll-bar width to the div-width with Javascript? Is there a CSS parameter/configuration that will give me wikipedia-esque width-expansion? Any pertinent advice gratefully accepted. RTSL. You're welcome. Yes, there is always that :-) But I had rather hoped that someone here might have the answer and be willing to share it. [...] |
|
If your reply went as far as to say "It is in the [...] source [...]" then I would be grateful. |
|
PS. Who knows - maybe it's not buried in 10 levels of obfuscated JS include files and I am being lazy/unreasonable. |
#16
| |||||||
| |||||||
|
|
Le 11/3/09 2:37 PM, Richard Cornford a écrit : On Nov 3, 1:01 pm, SAM wrote: Le 11/3/09 1:36 PM, Richard Cornford a écrit : snip Arggh ! Now answer about to detect width of scrollbars ? |
|
With a modern "touch" system, no more fingered accessing scrollbars are necessary ... fingers are used as a scroll-wheel Not on a drawing/writing surface. In those cases dragging a finger across the surface will make marks or select content. Là je ne comprends plus rien !? |
|
Because you draw with your finger ? |
|
with enough precision this time ? To scroll, some systems need 2 fingers (maybe to do not mix with one finger selecting ?) |
|
You(you'll?) certainly can reduce your scrollbars to 5px (or 0 ?) to leave more place to the content. Not if I want to be able to scroll the content. by moving finger(s) on it |
|
(most of phones-touch do it with lists) |
|
Is there any firmware/software update for tablets PC ? |
#17
| |||||
| |||||
|
|
On Nov 3, 1:55 pm, SAM wrote: Arggh ! No answer about to detect width of scrollbars ? Dimension information for an element includes clientWidth/Height offsetWidth/Height and scrollWidth/Height. Given an appropriate element, if it has scroll bars then their dimensions can be deduced. |
|
And it would be fine to do that once per execution because the odds of a user adjusting their scrollbar dimensions while any given scripted document is loaded is extremely low. |
|
Là je ne comprends plus rien !? I have no idea what that means. |
|
To scroll, some systems need 2 fingers (maybe to do not mix with one finger selecting ?) Probably, but multi-touch is hardware dependent. |
|
(most of phones-touch do it with lists) A PC hardly compares to a phone. |
#18
| |||
| |||
|
|
I certainly do something wrong because if I can get clientWidth and scrollWidth giving scrollWidth to the width of the element doesn't give place for scrollbars (Firefox where offsetWidth = scrollWidth) Perhaps something along the lines of: |
|
And it would be fine to do that once per execution because the odds of a user adjusting their scrollbar dimensions while any given scripted document is loaded is extremely low. Otherwise ... too bad for him ! |
|
Là je ne comprends plus rien !? I have no idea what that means. Good! Almost correct translation ;-) |
#19
| |||||||
| |||||||
|
|
Le 11/3/09 4:44 PM, Richard Cornford a écrit : On Nov 3, 1:55 pm, SAM wrote: Arggh ! No answer about to detect width of scrollbars ? Dimension information for an element includes clientWidth/Height offsetWidth/Height and scrollWidth/Height. Given an appropriate element, if it has scroll bars then their dimensions can be deduced. I certainly do something wrong because if I can get clientWidth and scrollWidth giving scrollWidth to the width of the element doesn't give place for scrollbars (Firefox where offsetWidth = scrollWidth) |
|
Here the code for my test : style type="text/css" #menu { position: absolute; overflow-y: auto; overflow-x: hidden; snip IE.7 : scrollWidth = 166 clientWidth = 166 offsetWidth = 166 |
|
what could I do with such data ? where with IE7 (m.scrollWidth>m.clientWidth) would be false so, apparently, it doesn't need more room (that's not true) However, applying : m.style.width = (m.scrollWidth>m.clientWidth)? (m.scrollWidth*2-m.clientWidth)+ 'px':''; seems to work. (I definitively understand nothing about Microsoft products) And it would be fine to do that once per execution because the odds of a user adjusting their scrollbar dimensions while any given scripted document is loaded is extremely low. Otherwise ... too bad for him ! Changing scrollbars width in /display/appearance/advanced of Win XP changes nothing in IE.7's results above (all same widths) (in IE.6 offsetWidth-clientWidth gives the correct width of the bar) Once again I did something wrong ? |
|
[out of topic?] Là je ne comprends plus rien !? I have no idea what that means. Good! Almost correct translation ;-) To scroll, some systems need 2 fingers (maybe to do not mix with one finger selecting ?) Probably, but multi-touch is hardware dependent. And tablets PC no ? |
|
(most of phones-touch do it with lists) A PC hardly compares to a phone. a PC Windows ? sure ! |
|
before it reaches a phone navigation functionalities we'll have to wait. |
|
No, no, I said nothing ! |
#20
| |||
| |||
|
|
On Nov 3, 6:58 pm, SAM wrote: [out of topic?] To scroll, some systems need 2 fingers (maybe to do not mix with one finger selecting ?) Probably, but multi-touch is hardware dependent. And tablets PC no ? I have no idea what that means. |
|
(most of phones-touch do it with lists) A PC hardly compares to a phone. a PC Windows ? sure ! I have no idea what that means. |
|
before it reaches a phone navigation functionalities we'll have to wait. More likely the other way around. Until there are word processors like Word, handwriting based text entry notebook applications and drawing applications on phones they will not have to deal with the wider range of user input demands necessary for those applications. |
![]() |
| Thread Tools | |
| Display Modes | |
| |