Questions tagged [offsetwidth]
52 questions
0
votes
1 answer
What's the workaround when Firefox 4 reports inconsistent offsetWidth for table cells
I have a Gantt chart type web control: an html table of cells (one cell represents one day for example) and some absolutely positioned divs representing the bars - the parent element of the div is the appropriate start TD. I set the width of the…

Tom Carter
- 2,938
- 1
- 27
- 42
0
votes
1 answer
How to take immediate / offset bits for C.LD compressed instruction in RISC-V?
As shown in the reference pic [1] for RISC-V compressed instruction, immediate bit for C.LD instruction is shown in 2 different places - bit [12:10] and [4:2]. It is also shown that offset[5:3] and offset [7:6] is marked in imm field - [12:10] and…

sang 625
- 3
- 2
0
votes
2 answers
How to apply conditional column offsets in IONIC 3
I am using the ionic 3 and i have created grids.
And Now i want to apply conditions on columns offset for this i have applied this code given below, but i got the error.

Chetan Rohilla
- 21
- 4
0
votes
0 answers
Calculate scrollbar width using LESS?
I'm working on a data table with a scrollable body and sortable, static headers, and when the vertical scrollbar appears, it messes with the right alignment between the header tags and the td tags below it.
Without questioning the HTML behind the…

ryan
- 89
- 10
0
votes
0 answers
Why do I get difference in offsetheight and offsetwidth values when I emulate my web application from IE5 to IE7 or higher?
I want to make all the web pages in my web application to be compatible with the latest IE=Edge. Hence, I emulated my application using the IE developers tool and faced with a lot of broken CSS.
I understand this is common when we move a web page…

Jerin Nishok
- 13
- 1
- 6
0
votes
1 answer
Trying to get width of element inside .each()
I am trying to get the width of an element whilst inside a .each() function however I am running into issues with it simply not working.
jQuery(document).ready(function($) {
$('.tooltip').each(function() {
var self = $(this);
…

Daniel Vickers
- 1,054
- 1
- 12
- 32
0
votes
1 answer
D3 cannot read property offsetHeight of null
I get this cannot read property 'offsetHeight' of null while i just initialized its height.
Here is my code:
d3.select("#container")
.style("height", "100%")
.style("width", "100%")
.style("position", "relative")
.style("bottom",…

Robin van Hoorn
- 334
- 1
- 10
0
votes
0 answers
offsetwidth for Chrome returns different values
code to get
inner.offsetWidth
the result for me is 2, but some people got 1. Even when we have the same Chrome version. In IE, it returns 1.
btw, my result is
offsetWidth: 2
version: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36…

shrimp rice
- 321
- 4
- 22
0
votes
1 answer
offsetWidth vs scrollWidth: should be different, but the same
I have looked at:
Understanding offsetWidth, clientWidth, scrollWidth and -Height, respectively
But it is not the case. For example,
.main {
width: 400px;
overflow: visible;
}
.main table {
width: 600px;
}
…