Project

General

Profile

Actions

Bug #3410

closed
SR BD

WCheckBox setting CSS "white-space: nowrap"?

Bug #3410: WCheckBox setting CSS "white-space: nowrap"?

Added by Stefan Ruppert about 12 years ago. Updated over 11 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

AF Updated by Alan Finley about 12 years ago Actions #1

You can use a workaround:

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

KD Updated by Koen Deforche almost 12 years ago Actions #2

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

KD Updated by Koen Deforche almost 12 years ago Actions #3

  • Assignee changed from Korneel Dumon to Pavel Sopher

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

  • Assignee changed from Pavel Sopher to Benoit Daccache

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

  • Status changed from InProgress to Closed
Actions

Also available in: PDF Atom