fix(color): attempt to show units for value widget if height < 50 (#5818)
This commit is contained in:
@@ -197,7 +197,6 @@ class ValueWidget : public Widget
|
|||||||
|
|
||||||
// Get positions, alignment and value font size.
|
// Get positions, alignment and value font size.
|
||||||
if (height() < 50) {
|
if (height() < 50) {
|
||||||
valueFlags = NO_UNIT;
|
|
||||||
if (width() >= 120) {
|
if (width() >= 120) {
|
||||||
lblAlign = ALIGN_LEFT;
|
lblAlign = ALIGN_LEFT;
|
||||||
valAlign = ALIGN_RIGHT;
|
valAlign = ALIGN_RIGHT;
|
||||||
|
|||||||
Reference in New Issue
Block a user