fixed auto-positioning on frame-resize