+bool InsetVSpace::metrics(MetricsInfo & mi, Dimension & dim) const
+{
+ int height = 3 * arrow_size;
+ if (space_.length().len().value() >= 0.0)
+ height = max(height, space_.inPixels(*mi.base.bv));
+
+ LyXFont font;
+ font.decSize();
+ font.decSize();
+
+ int w = 0;
+ int a = 0;
+ int d = 0;
+ theFontMetrics(font).rectText(label(), w, a, d);
+
+ height = max(height, a + d);
+
+ dim.asc = height / 2 + (a - d) / 2; // align cursor with the
+ dim.des = height - dim.asc; // label text
+ dim.wid = ADD_TO_VSPACE_WIDTH + 2 * arrow_size + 5 + w;
+ bool const changed = dim_ != dim;