Browse Source

Fixed overlapping tooltips when showing markdown

pipelines/235045657
eidheim 6 years ago
parent
commit
2205ce03b7
  1. 2
      src/tooltips.cc

2
src/tooltips.cc

@ -196,6 +196,8 @@ void Tooltip::show(bool disregard_drawn, const std::function<void()> &on_motion)
});
auto layout = Pango::Layout::create(tooltip_text_view->get_pango_context());
if(auto tag = code_tag ? code_tag : code_block_tag)
layout->set_font_description(tag->property_font_desc());
layout->set_text(buffer->get_text());
layout->get_pixel_size(size.first, size.second);
size.first += 6; // 2xpadding

Loading…
Cancel
Save