fixed custom element layouting