(1) One question for compute scrollbar width
I can't right compute web browser scrollbar width for IE6,7,8,look:
var __CONSTANTS_SCOLLER_WIDTH = Ext.getBody().getWidth()-Ext.getBody().getViewSize().width;
but I only get __CONSTANTS_SCOLLER_WIDTH is '0'.Otherwise In FF it's '16'.
how can I right compute web browser scrollbar width for IE6,7,8?
(2) Two question for IE6,7 because DOCTYPE
I define DOCTYPE in html,such as
<!DOCTYPEhtmlPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1. The next Ext 3.0 version will contain a Ext.getScrollBarWidth() function which uses two nested divs to calculate the scrollbar width.
2. This is not an Ext bug. In standards compliant mode the document body is the height of the content and not the size of the viewport. This means that you can't click on it, because the div is directly above it.
Two point is very important for the question.
(1) If it has DOCTYPE , the div style not contain 'position:absolute',we mouse down the div ,then can alert '0'.but the div style contain 'position:absolute',we mouse down the div
but not alert '0'.otherwise we mouse down the border for the div,then can alert '0'.
(2) If it has not DOCTYPE , we mouse down the div,then all can alert '0'.
what reason ? when has DOCTYPE, how can I listen 'mousedown' of the div?
Sorry, I don't get the problem (but your English isn't helping either).
Can you explain better? (you could try posting in your own language - maybe somebody here can understand it)
What I am saying is the definition of the DOCTYPE in the circumstances, when the div contains style 'position: absolute' time, not div mouse click alert (0). But does not contain a 'position: absolute' time, the mouse click div to be alert (0)
DOCTYPE definition if there is no time, div style, whether or not included 'position: absolute', the mouse click can be alert (0);
So, my question is, if the definition of the DOCTYPE, but also contains the content div style 'position: absolute', how to write the script makes the mouse click to be alert (0);