Skip to content

Commit

Permalink
Update RimeWithWeasel.cpp
Browse files Browse the repository at this point in the history
fix rime#1001 issue
  • Loading branch information
fxliang authored Oct 8, 2023
1 parent 60c7a71 commit 263cc92
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions RimeWithWeasel/RimeWithWeasel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,8 @@ static void _UpdateUIStyle(RimeConfig* config, UI* ui, bool initialize)
style.candidate_spacing = max(style.candidate_spacing, style.hilite_padding_x * 2); // horizontal, if hilite_padding_x over candidate spacing, increase candidate spacing
}
// hilite_padding_x vs hilite_spacing
style.hilite_spacing = max(style.hilite_spacing, style.hilite_padding_x);
if(style.inline_preedit)
style.hilite_spacing = max(style.hilite_spacing, style.hilite_padding_x);
}
else // LAYOUT_VERTICAL_TEXT
{
Expand All @@ -967,7 +968,8 @@ static void _UpdateUIStyle(RimeConfig* config, UI* ui, bool initialize)
if (style.vertical_text_with_wrap)
style.candidate_spacing = max(style.candidate_spacing, style.hilite_padding_y * 2);
// hilite_padding_y vs hilite_spacing
style.hilite_spacing = max(style.hilite_spacing, style.hilite_padding_y);
if(style.inline_preedit)
style.hilite_spacing = max(style.hilite_spacing, style.hilite_padding_y);
}
// fix padding and margin settings
int scale = style.margin_x < 0 ? -1 : 1;
Expand Down

0 comments on commit 263cc92

Please sign in to comment.