Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Oct 4, 2024
1 parent 421d0fe commit 9ccf4c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ruis/widget/input/text_input_line.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ vector2 text_input_line::measure(const ruis::vector2& quotum) const noexcept

if (quotum.x() < 0) {
ret.x() =
this->text_string_widget::measure(vector2(-1)).x() + cursor_width * this->context.get().units.dots_per_fp();
this->get_bounding_box().d.x() + cursor_width * this->context.get().units.dots_per_fp();
} else {
ret.x() = quotum.x();
}
Expand Down

0 comments on commit 9ccf4c2

Please sign in to comment.