Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #23095
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2014-02-14 09:15 -0800 |
| References | <93a9809d-7bf8-41ba-aa04-2cd917a6ec42@googlegroups.com> <XnsA2D3B1BBA4667eejj99@194.109.133.133> |
| Message-ID | <d7318e89-e6fa-4538-b887-5a646ad0d113@googlegroups.com> (permalink) |
| Subject | Re: Inaccurate offsetwidth reported |
| From | Rex the Strange <rexthestrange@gmail.com> |
On Thursday, February 13, 2014 9:28:18 AM UTC-7, Evertjan. wrote:
> Rex the Strange 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)
Thanks for that, but that's not it. Setting table layout to fixed messes with the table layout and doesn't fix the reporting problem.
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