package placebooks.client.ui.items;

import placebooks.client.model.PlaceBookItem;

import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.ui.Frame;

public class WebBundleItem extends PlaceBookItemWidget
{
	private final Frame frame = new Frame("http://www.google.co.uk");
	private String url;

	WebBundleItem(final PlaceBookItem item)
	{
		super(item);
		initWidget(frame);
		frame.setWidth("100%");
		frame.getElement().getStyle().setBorderWidth(0, Unit.PX);
	}

	@Override
	public void refresh()
	{
		if (url == null || !url.equals(getItem().getURL()))
		{
			url = getItem().getURL();
			frame.setUrl(url);
		}
	}
}
@@ -633,12 +633,186 @@
 l);%0A%09%09%7D%0A
+%09%09if (getItem().hasParameter(%22height%22))%0A%09%09%7B%0A%09%09%09frame.setWidth(%22auto%22);%0A%09%09%09frame.setHeight(%22100%25%22);%0A%09%09%7D%0A%09%09else%0A%09%09%7B%0A%09%09%09frame.setWidth(%22100%25%22);%0A%09%09%09frame.setHeight(%22auto%22);%0A%09%09%7D%09%0A
 %09%7D%0A%7D

Fix Web Bundle not resizing correctly