Commit e5b19b63 authored by twanvl's avatar twanvl

Fixed: Text sometimes overflows out of text fields, such as comments areas,...

Fixed: Text sometimes overflows out of text fields, such as comments areas, reminder text areas, and rules text areas:
  added a clipping region when in native look
parent a37b40af
......@@ -559,6 +559,10 @@ wxMenu* TextValueEditor::getMenu(int type) const {
// ----------------------------------------------------------------------------- : Drawing
void TextValueEditor::draw(RotatedDC& dc) {
if (nativeLook()) {
// clip the dc to the region of this control
dc.SetClippingRegion(style().getInternalRect());
}
// update scrollbar
prepareDrawScrollbar(dc);
// draw text
......@@ -574,6 +578,9 @@ void TextValueEditor::draw(RotatedDC& dc) {
fixSelection();
showCaret();
}
if (nativeLook()) {
dc.DestroyClippingRegion();
}
}
void TextValueEditor::redrawSelection(size_t old_selection_start_i, size_t old_selection_end_i, bool old_drop_down_shown) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment