Drop location not altered by element attributes

Left and top element attributes ignored when creating from JSON due to a
drop. Fixes #81.
Improved code dealing with resizability

Combined and simplified conditions.