public class DraggableHandlerImplIE6 extends DraggableHandlerImplIE {
@Override
public int[] calculateContainment(DraggableHandler draggableHandler, Offset containerOffset,
Element containerElement, boolean overflow) {
Dimension helperDimension = draggableHandler.getHelperDimension();
// don't substract margin in ie 6 and 7
return new int[]{
containerOffset.left
+ (int) $(containerElement).cur("borderLeftWidth", true)
+ (int) $(containerElement).cur("paddingLeft", true),
containerOffset.top
+ (int) $(containerElement).cur("borderTopWidth", true)
+ (int) $(containerElement).cur("paddingTop", true),
containerOffset.left
+ (overflow ? Math.max(containerElement.getScrollWidth(),
containerElement.getOffsetWidth()) : containerElement
.getOffsetWidth())
- (int) $(containerElement).cur("borderLeftWidth", true)
- (int) $(containerElement).cur("paddingRight", true)
- helperDimension.getWidth(),
containerOffset.top
+ (overflow ? Math.max(containerElement.getScrollHeight(),
containerElement.getOffsetHeight()) : containerElement
.getOffsetHeight())
- (int) $(containerElement).cur("borderTopWidth", true)
- (int) $(containerElement).cur("paddingBottom", true)
- helperDimension.getHeight()};
}