Browse Source

measureText() returns only .width

v1.x
Tj Holowaychuk 14 years ago
parent
commit
5f2854f6f6
  1. 1
      src/CanvasRenderingContext2d.cc

1
src/CanvasRenderingContext2d.cc

@ -877,7 +877,6 @@ Context2d::MeasureText(const Arguments &args) {
cairo_text_extents_t te; cairo_text_extents_t te;
cairo_text_extents(ctx, *str, &te); cairo_text_extents(ctx, *str, &te);
obj->Set(String::New("width"), Number::New(te.width)); obj->Set(String::New("width"), Number::New(te.width));
obj->Set(String::New("height"), Number::New(te.height));
return scope.Close(obj); return scope.Close(obj);
} }

Loading…
Cancel
Save