summaryrefslogtreecommitdiff
path: root/scene/gui/text_edit.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-12-07 07:52:01 +0100
committerGitHub <noreply@github.com>2017-12-07 07:52:01 +0100
commit8a07cb0b69db18712bfdde193f2a20a94706e8ab (patch)
tree97f7922c8bf8da99cfe2897a318e7b78f77d32a3 /scene/gui/text_edit.h
parent23c5f8c13733f69533cb91020c84f78feabd86c8 (diff)
parent1c1a6723d051ee0ca2308c75a617abbb236a7b12 (diff)
Merge pull request #14352 from ianb96/get_hidden_width
Fixes horizontal scrolling over hidden lines
Diffstat (limited to 'scene/gui/text_edit.h')
-rw-r--r--scene/gui/text_edit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.h b/scene/gui/text_edit.h
index 1bbca22cb1..c715634c8b 100644
--- a/scene/gui/text_edit.h
+++ b/scene/gui/text_edit.h
@@ -159,7 +159,7 @@ class TextEdit : public Control {
void set_font(const Ref<Font> &p_font);
void set_color_regions(const Vector<ColorRegion> *p_regions) { color_regions = p_regions; }
int get_line_width(int p_line) const;
- int get_max_width() const;
+ int get_max_width(bool p_exclude_hidden = false) const;
const Map<int, ColorRegionInfo> &get_color_region_info(int p_line);
void set(int p_line, const String &p_text);
void set_marked(int p_line, bool p_marked) { text[p_line].marked = p_marked; }