double getHeight(double height) { if (useOriginSize) { return height; } try { return height.h; } catch (e) { return height; } }