Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #35827

Re: Is there a control for this?

Newsgroups comp.lang.javascript
Subject Re: Is there a control for this?
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References (2 earlier) <e87317df-6b6b-42dc-afa6-71b958337adc@googlegroups.com> <XnsA99BED4DCB55Feejj99@194.109.6.166> <b74ade00-2497-45fb-baf8-4ead85be30f0@googlegroups.com> <XnsA99C8406DCA4eejj99@194.109.6.166> <d4d40538-c5f7-4611-91e4-ca0b0fe72816@googlegroups.com>
Date 2018-11-16 22:33 +0100
Message-ID <XnsA99CE57FE5A1Feejj99@194.109.6.166> (permalink)

Show all headers | View raw


dr.j.r.stockton@gmail.com wrote on 16 Nov 2018 in comp.lang.javascript:

> On Friday, November 16, 2018 at 11:58:50 AM UTC, Evertjan. wrote:
>> JRS wrote on 16 Nov 2018 in comp.lang.javascript:
>> 
>> >> Use css styles for width in px, not the old html attribute
>> > 
>> > No.  I don't want the width of a text control in px; in this
>> > case I want room for exactly four number characters, monospace
>> >  - the overall width is not important.  I am already using
>> >       .EM4 { width: 4em; }    .
>> 
>> That is, imho, not the task of HTML5 cum CSS3.
>> 
>> Better limit the integer number to -999 to 9999 in JS.
> 
> It's not an integer; it is a percentage inner margin, stepping by 0.5
> - but one can type in whatever suits.  A resolution of 0.5% should
> serve, 0.1% is the greatest reasonable accuracy.  A negative value
> would correspond to printing outside the printer's printable area.
> Typically, about 10% would be used, currently.  A floating string,
> such as "1e1", can be typed in; but after inc/dec I see 10.5/9.5 .
> There is no need to constrain the values, since their effect is
> readily enough visible.  Octal is not recognised; hexadecimal is not
> understood.

You should write and print numeric values as formatted strings.
Algol taught me that.

Don't be dependend on the quirks of operating systems and browsers.

-- 
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


Thread

Is there a control for this? dr.j.r.stockton@gmail.com - 2018-11-15 04:43 -0800
  Re: Is there a control for this? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-11-15 15:49 +0000
  Re: Is there a control for this? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-11-15 16:51 +0100
    Re: Is there a control for this? dr.j.r.stockton@gmail.com - 2018-11-15 10:17 -0800
      Re: Is there a control for this? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-11-15 23:19 +0100
        Re: Is there a control for this? dr.j.r.stockton@gmail.com - 2018-11-16 03:49 -0800
          Re: Is there a control for this? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-11-16 12:58 +0100
            Re: Is there a control for this? dr.j.r.stockton@gmail.com - 2018-11-16 10:51 -0800
              Re: Is there a control for this? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-11-16 22:33 +0100
                Re: Is there a control for this? dr.j.r.stockton@gmail.com - 2018-11-17 03:26 -0800
                Re: Is there a control for this? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-11-17 21:59 +0100
                Re: Is there a control for this? dr.j.r.stockton@gmail.com - 2018-11-18 06:29 -0800
                Re: Is there a control for this? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-11-18 15:44 +0000
    Re: Is there a control for this? Gloops <gloops@zailes.invalid.org.invalid> - 2018-11-18 10:35 +0100
      Re: Is there a control for this? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-11-18 11:32 +0100
        Re: Is there a control for this? Gloops <gloops@zailes.invalid.org.invalid> - 2018-11-29 17:08 +0100
      Re: Is there a control for this? dr.j.r.stockton@gmail.com - 2018-11-18 05:37 -0800
      Re: Is there a control for this? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-11-18 17:13 +0100
        Re: Is there a control for this? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-11-18 21:28 +0100
          Re: Is there a control for this? dr.j.r.stockton@gmail.com - 2018-11-19 02:51 -0800

csiph-web