mirror of
https://github.com/godotengine/godot.git
synced 2024-12-02 17:12:43 +00:00
Merge pull request #11301 from volzhs/fix-richtextlabel
Make clickable properly in editor help
This commit is contained in:
commit
317512e2fb
@ -540,14 +540,6 @@ void RichTextLabel::_process_line(ItemFrame *p_frame, const Vector2 &p_ofs, int
|
||||
|
||||
it = _get_next_item(it);
|
||||
|
||||
if (p_mode == PROCESS_POINTER && r_click_item && itp && !it && p_click_pos.y > p_ofs.y + y + lh) {
|
||||
//at the end of all, return this
|
||||
if (r_outside) *r_outside = true;
|
||||
*r_click_item = itp;
|
||||
*r_click_char = rchar;
|
||||
return;
|
||||
}
|
||||
|
||||
if (it && (p_line + 1 < p_frame->lines.size()) && p_frame->lines[p_line + 1].from == it) {
|
||||
|
||||
if (p_mode == PROCESS_POINTER && r_click_item && p_click_pos.y >= p_ofs.y + y && p_click_pos.y <= p_ofs.y + y + lh) {
|
||||
|
Loading…
Reference in New Issue
Block a user