Project

General

Profile

Bug #512

WPushButton versus WDialog style class inconsistencies

Added by Koen Deforche about 10 years ago. Updated about 7 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.

#1

Updated by Koen Deforche about 10 years ago

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.

#2

Updated by Koen Deforche about 7 years ago

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

Updated by Koen Deforche about 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF