Project

General

Profile

Actions

Bug #3984

closed
SR BD

wt-3.3.4 WDoubleSpinBox::setReadOnly(true) does not work

Bug #3984: wt-3.3.4 WDoubleSpinBox::setReadOnly(true) does not work

Added by Stefan Ruppert over 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Benoit Daccache
Target version:
Start date:
04/15/2015
Due date:
% Done:

0%

Estimated time:

Description

Hi,

I just wanted to use the readonly flag of a WDoubleSpinBox object. But this seems not to work.

Inspecting the generated HTML it looks like the attribute readonly is there but empty:

<input id="o6t0ijl" maxlength="10" name="o6t0ijl" size="10" title="Threshold 2" onchange="var e=event||window.event,o=this;{var f=function(o){Wt3_3_4.validate(o)};f(o,e);}Wt._p_.update(o,'sb92',e,true);"

... readonly="" ...

class="right Wt-spinbox" style="min-width: 89px; min-height: 0px; display: block; box-sizing: border-box; position: absolute; width: 122px; margin-left: 0px; left: 126px; top: 0px;" type="text">

Maybe this also apply to WSpinBox objects?

Regards,
Stefan


Files

Ticket3984.cpp (1.13 KB) Ticket3984.cpp slightly modified version Stefan Ruppert, 06/01/2015 07:09 PM

KD Updated by Koen Deforche over 11 years ago Actions #1

  • Status changed from New to InProgress
  • Assignee set to Benoit Daccache

BD Updated by Benoit Daccache over 11 years ago Actions #2

Hi Stefan,

I tried to reproduce the problem without luck.

The WDoubleSpinBox::setReadOnly(true) works well on Chrome and FF and is generating the correct HTML.

Can you give me more information (Browser, testcase , ...) ?

Thank you,

Regards,

Benoit

SR Updated by Stefan Ruppert over 11 years ago Actions #3

Hi,

isolating a test case is not so easy. But here are some more constraints from my code:

  • The WDoubleSpinBox is inside a WDialog

  • Its per default disabled and enabled and possibly set to readonly depending on the users choice by changing another widget

Hope this helps to reproduce it.

Regards,
Stefan

BD Updated by Benoit Daccache over 11 years ago Actions #4

  • File 3984.cpp added

Hey Stephan,

Are you using the latest git version ?

I couldn't reproduce it even when I put it into a WDialog.

I've attached the code, could you please try to modify it in order to reproduce the bug ?

Could you also give me more informations on the environment ?

Thank you,

Regards,

Benoit

SR Updated by Stefan Ruppert over 11 years ago Actions #5

Hi Benoit,

I slightly changed your example and can reproduce the bug unter linux with firefix v38.

First disable with spinbox and then enable/readonly the spinbox!

Regards,
Stefan

BD Updated by Benoit Daccache over 11 years ago Actions #6

  • Status changed from InProgress to Resolved

Hey Stefan,

Thank you for your help.

The bug is now fixed.

Regards,

Benoit

BD Updated by Benoit Daccache over 11 years ago Actions #7

  • File deleted (3984.cpp)

KD Updated by Koen Deforche almost 11 years ago Actions #8

  • Status changed from Resolved to Closed

KD Updated by Koen Deforche almost 11 years ago Actions #9

  • Target version changed from 3.3.4 to 3.3.5
Actions

Also available in: PDF Atom