Project

General

Profile

Actions

Bug #3410

closed

WCheckBox setting CSS "white-space: nowrap"?

Added by Stefan Ruppert almost 10 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Benoit Daccache
Target version:
Start date:
07/01/2014
Due date:
% Done:

0%

Estimated time:

Description

Hi,

I have a WCheckBox widget with a associated text and I want to suppress word-wrapping of the checkbox and the descriptive text using CSS "white-space: nowrap".

But with current implementation there is no appropriate method and the WAbstractToggleButton implements its own label instead of using WFormWidget::label() attribute.

How can I achive this?

Regards,

Stefan

Actions #1

Updated by Alan Finley almost 10 years ago

You can use a workaround:

checkBox->doJavaScript(checkBox->jsRef(), ".style.whiteSpace='nowrap'");
Actions #2

Updated by Koen Deforche over 9 years ago

  • Status changed from New to InProgress
  • Assignee set to Korneel Dumon
  • Target version set to 3.3.4

Add a WCheckBox::setWordWrap() as in WLabel.

Actions #3

Updated by Koen Deforche over 9 years ago

  • Assignee changed from Korneel Dumon to Pavel Sopher
Actions #4

Updated by Koen Deforche about 9 years ago

  • Assignee changed from Pavel Sopher to Benoit Daccache
Actions #5

Updated by Benoit Daccache about 9 years ago

  • Status changed from InProgress to Closed
Actions

Also available in: Atom PDF