Project

General

Profile

Actions

Bug #512

closed
KD

WPushButton versus WDialog style class inconsistencies

Bug #512: WPushButton versus WDialog style class inconsistencies

Added by Koen Deforche about 16 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Start date:
09/14/2010
Due date:
% Done:

0%

Estimated time:

Description

WDialog::setStyleClass() modifes the style class
WPushButton::setStyleClass() (sometimes) adds a style class in addition to Wt-btn

That is terribly inconsistent.

KD Updated by Koen Deforche almost 16 years ago Actions #1

Proposal:

- setStyleClass() will always replace the entire style class. This changed behavior (e.g. for WPushButton)
can be supressed using a configuration property ("wt-old-setstyleclass")

- if you want to add/remove a style class in addition to Wt's default style class, then use
addStyleClass() and removeStyleClass() in new code.

KD Updated by Koen Deforche about 13 years ago Actions #2

  • Status changed from New to Resolved
  • Target version set to 3.3.0

KD Updated by Koen Deforche about 13 years ago Actions #3

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom