-
Notifications
You must be signed in to change notification settings - Fork 11.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bar Gauge: Add max height option #76042
Conversation
(Open the links below in a new tab to go to the correct steps)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good! We should also update the bar gauge docs (index.md) file with this added property - that can be done in a follow-up PR though ;)
Is this really needed? Been many years like without any request for this option. |
@nmarrs |
path: 'minVizWidth', | ||
name: 'Min width', | ||
description: 'Minimum column width', | ||
description: 'Minimum column width (vertical orientation)', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nmarrs There is one point to discuss.
I want to show specific sizing options for selected layout orientation. For example, to display Min width
for vertical. layout orientation only, to avoid options overwhelming.
I didn't find any proper way to show/hide sizing options for specific layout orientations. For example, if there is auto
layout orientation we can't say the exact orientation, so we can't decide which sizing options to show or hide. So right now it's gonna be displayed all sizing options both for vertical and horizontal layout.
Btw, the same situation happening with the Name placement
option.
I decided to add an extra description to each sizing option. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is reasonable :) I think this is good to show off to Torkel / get this thoughts / approval
max: 300, | ||
step: 1, | ||
}, | ||
showIf: (options) => options.sizing === BarGaugeSizing.Manual, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can still make the manual options a function of layout orientation right?
for auto we show all
for horizontal we show max / min height
for vertical we just show width
With this I think we can keep the description explicitely saying what they are for / apply, which is especially useful in auto mode
Hi @torkelo, Screen.Recording.2023-11-03.at.12.19.48.mov |
@Develer looks great |
So now that we have "Bar Size" i have to update all my Panels and Dashboards with a new Min height value to correct that poor implementation Not amused ! |
minVizHeight: 10, | ||
minVizWidth: 0, | ||
maxVizHeight: 300, | ||
minVizHeight: 75, | ||
minVizWidth: 75, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nmarrs @Develer these changes sadly these changes to the defaults that are still used in "auto" mode completely and utterly break the auto mode. The sad part is that we cannot just restore the values to fix it as any saved dashboard will be saved with these new values.
but maybe the fix is just to not use these defaults in auto mode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait, no we can just change these. even though they are persisted the defaults are directly used when sizing is set to auto
@Leviathan09 we are sorry for introducing this bug / regression and for the headache that it caused :/ This was not our intention and we have merged a PR to fix this asap (will be in v10.3) |
What is this feature?
This PR add new option for max height of bar in horizontal orientation.
Fixes #75982
Special notes for your reviewer:
Please check that:
For doc changes see #76240