+ if (editing()) {
+ expand();
+ expanded_.metrics(mi_);
+ width_ = expanded_.width() + 4;
+ ascent_ = expanded_.ascent() + 2;
+ descent_ = expanded_.descent() + 2;
+
+ width_ += mathed_string_width(font_, name()) + 10;
+
+ int lasc;
+ int ldes;
+ int lwid;
+ mathed_string_dim(font_, "#1: ", lasc, ldes, lwid);
+
+ for (idx_type i = 0; i < nargs(); ++i) {
+ MathXArray const & c = xcell(i);
+ c.metrics(mi_);
+ width_ = max(width_, c.width() + lwid);
+ descent_ += max(c.ascent(), lasc) + 5;
+ descent_ += max(c.descent(), ldes) + 5;
+ }
+ return;
+ }