Fix for issue "Setting height has no effect #2"

Fix for issue "Setting height has no effect #2" + NotSerializableException