double AdjustHeight(double dy, Dock dock) { if (dock == Dock.Bottom) dy = -dy; height += dy; SetTargetHeight(height); return dy; }