Project

General

Profile

Actions

Bug #3984

closed

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

Added by Stefan Ruppert about 9 years ago. Updated over 8 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
Actions #1

Updated by Koen Deforche almost 9 years ago

  • Status changed from New to InProgress
  • Assignee set to Benoit Daccache
Actions #2

Updated by Benoit Daccache almost 9 years ago

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

Actions #3

Updated by Stefan Ruppert almost 9 years ago

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

Actions #4

Updated by Benoit Daccache almost 9 years ago

  • 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

Actions #5

Updated by Stefan Ruppert almost 9 years ago

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

Actions #6

Updated by Benoit Daccache almost 9 years ago

  • Status changed from InProgress to Resolved

Hey Stefan,

Thank you for your help.

The bug is now fixed.

Regards,

Benoit

Actions #7

Updated by Benoit Daccache almost 9 years ago

  • File deleted (3984.cpp)
Actions #8

Updated by Koen Deforche over 8 years ago

  • Status changed from Resolved to Closed
Actions #9

Updated by Koen Deforche over 8 years ago

  • Target version changed from 3.3.4 to 3.3.5
Actions

Also available in: Atom PDF