Dynamic resizing of PortsRow element