fix bug on glass size fith example. first resize then add edge insets.