OSDN Git Service

Correct popup position.
authorAiwota Programmer <aiwotaprog@tetteke.tk>
Sun, 5 Jul 2009 06:47:20 +0000 (15:47 +0900)
committerAiwota Programmer <aiwotaprog@tetteke.tk>
Sun, 5 Jul 2009 06:47:20 +0000 (15:47 +0900)
src/text_view_popupable.cxx

index b573a7d..4b607f4 100644 (file)
@@ -187,6 +187,7 @@ void Popupable::do_popup(const text_element::Anchor& elem,
 
   int width, height;
   popup_->get_size(width, height);
+  height -= 2;
 
   x_org += rect.get_x();
   y_org += rect.get_y() - adjustment_.get_value() - height;