I tried to calculate offSetWidth of a div element which has the following css properties: 1)Height:500px 2)overflow:auto 3)dir:rtl 4)box-sizing:border-box
I added less content in the div so that the div does not show any scroll and used offSetWidth property to calculate offSetWidth and it was 1302. Then I added more content so that the browser started adding a scrollbar to the div. I again used offSetWidth property to calculate the offSetWidth with scrollbar in the div.
The result was surprisingly 1302 again. Now I'm unable to figure out the reason why the offSetWidth of the div is same when the div has scrollbar and when it does not have scrollbar.
Please help me in this regard. THANKS IN ADVANCE