mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
take margin_right into account when determining width
This commit is contained in:
@@ -613,7 +613,7 @@ bool TextViewer::prepareLinesAtScale(RotatedDC& dc, const vector<CharInfo>& char
|
||||
}
|
||||
// Did the word become too long?
|
||||
if (!break_now) {
|
||||
double max_width = lineRight(dc, style, line.top);
|
||||
double max_width = lineRight(dc, style, line.top) - line.margin_right;
|
||||
if (line_size.width + word_size.width > max_width) {
|
||||
if (!style.field().multi_line) {
|
||||
// single line word does not fit
|
||||
|
||||
Reference in New Issue
Block a user