Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #23093
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: Inaccurate offsetwidth reported |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | <93a9809d-7bf8-41ba-aa04-2cd917a6ec42@googlegroups.com> |
| Date | 2014-02-13 17:28 +0100 |
| Message-ID | <XnsA2D3B1BBA4667eejj99@194.109.133.133> (permalink) |
Rex the Strange <rexthestrange@gmail.com> wrote on 13 feb 2014 in
comp.lang.javascript:
> I'm trying to take an existing table and make a complete duplicate of a
> couple of rows - each cell has to be the same size as the table that
> it's taken from so what I did was to set the width of each cell to the
> client width of the model cell (adjusted for padding) which seems to set
> the table cell to the right size
>
> Except...
>
> In some cells, depending on the size of the window, the client width
> size reported is off by a pixel from what it actually is - I tested this
> by getting the reported value and comparing it to a screenshot (yes, I'm
> set to 100% zoom). Most are right, but once in a while one is off by 1.
>
> Does anyone have any idea why it might do this and what I can do to
> compensate for it (or some other suggestion)?
myTable {
table-layout:fixed;
}
or
myTable.style.tableLayout="fixed";
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Inaccurate offsetwidth reported Rex the Strange <rexthestrange@gmail.com> - 2014-02-13 08:12 -0800
Re: Inaccurate offsetwidth reported "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-02-13 17:28 +0100
Re: Inaccurate offsetwidth reported Rex the Strange <rexthestrange@gmail.com> - 2014-02-14 09:15 -0800
Re: Inaccurate offsetwidth reported Rex the Strange <rexthestrange@gmail.com> - 2014-02-25 08:33 -0800
Re: Inaccurate offsetwidth reported "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2014-03-03 16:06 -0800
Re: Inaccurate offsetwidth reported ompalompasales2@gmail.com - 2014-03-04 13:06 -0800
csiph-web