Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/MRViewer/ImGuiHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ PaletteChanges Palette(
{
ImGui::SetNextItemWidth( scaledWidth );
int presetIndex = -1;
if ( RibbonButtonDrawer::CustomCombo( "Load preset", &presetIndex, presets ) )
if ( RibbonButtonDrawer::CustomCombo( "Load preset", &presetIndex, presets, false ) )
{
if ( presetIndex != -1 )
PalettePresets::loadPreset( presets[presetIndex], palette );
Expand Down
2 changes: 1 addition & 1 deletion source/MRViewer/MRRibbonButtonDrawer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ bool RibbonButtonDrawer::CustomCombo( const char* label, int* v, const std::vect
const ImVec2 pos = window->DC.CursorPos;
const float arrowSize = 2 * style.FramePadding.y + ImGui::GetTextLineHeight();
if ( !showPreview )
ImGui::PushItemWidth( arrowSize );
ImGui::PushItemWidth( arrowSize + style.FramePadding.x * 0.5f );

float itemWidth = ( context->NextItemData.Flags & ImGuiNextItemDataFlags_HasWidth ) ? context->NextItemData.Width : window->DC.ItemWidth;

Expand Down