Layout Width in Pixels

Could you please post an example layout that extends VerticalLayout and sends the computed size(real size in pixels) back to the server.