[editor] fix layout when no CSS calc() available

mainly to support iOS 5