Buggy code:
private static final String SELECTED_CELL_STYLE2 = "<seq2seq4repair_space>{<seq2seq4repair_space>outline:<seq2seq4repair_space>solid<seq2seq4repair_space>#06f<seq2seq4repair_space>1px;" + "<seq2seq4repair_space>-moz-outline-offset:<seq2seq4repair_space>-2px;<seq2seq4repair_space>outline-offset:<seq2seq4repair_space>-2px;<seq2seq4repair_space>z-index:<seq2seq4repair_space>3;<seq2seq4repair_space>}" ; private static final String SELECTED_HEADER_STYLES = "<seq2seq4repair_space>{<seq2seq4repair_space>background:<seq2seq4repair_space>#e0F0ff;<seq2seq4repair_space>}" ; private static final String SELECTED_CELL_RANGE_STYLES = "<seq2seq4repair_space>{<seq2seq4repair_space>background:<seq2seq4repair_space>rgba(224," + "<seq2seq4repair_space>245,<seq2seq4repair_space>255,<seq2seq4repair_space>0.8)<seq2seq4repair_space>!important;<seq2seq4repair_space>}" ; private static final String EDITING_CELL_SELECTOR = ".v-spreadsheet<seq2seq4repair_space>.sheet<seq2seq4repair_space>div" ; private static final String EDITING_CELL_STYLE = "{<seq2seq4repair_space>display:<seq2seq4repair_space>inline<seq2seq4repair_space>!important;" + "<seq2seq4repair_space>outline:<seq2seq4repair_space>none<seq2seq4repair_space>!important;<seq2seq4repair_space>width:<seq2seq4repair_space>auto<seq2seq4repair_space>!important;<seq2seq4repair_space>z-index:<seq2seq4repair_space>-10;<seq2seq4repair_space>}" ; private static final String HYPERLINK_CELL_STYLE = "{<seq2seq4repair_space>cursor:<seq2seq4repair_space>pointer<seq2seq4repair_space>!important;<seq2seq4repair_space>}" ; private static final String MERGED_REGION_CELL_STYLE = "{<seq2seq4repair_space>display:<seq2seq4repair_space>none;<seq2seq4repair_space>}" ; private static final String FREEZE_PANEL_OVERFLOW_STYLE = "{<seq2seq4repair_space>overflow:<seq2seq4repair_space>hidden;<seq2seq4repair_space>}" ; private final Logger debugConsole = Logger . getLogger ( "spreadsheet-logger" ) ; private final SheetHandler actionHandler ; private final SelectionWidget selectionWidget ; private final VOverlay hyperlinkTooltip ; private final VOverlay resizeTooltip ; private final CellComment cellCommentOverlay ; private CellComment focusedCellCommentOverlay ; private final VLabel hyperlinkTooltipLabel ; private final VLabel resizeTooltipLabel ; private DivElement spreadsheet = Document . get ( ) . createDivElement ( ) ; private DivElement sheet = Document . get ( ) . createDivElement ( ) ; private SheetInputEventListener sheetInputEventListener ; private DivElement corner = Document . get ( ) . createDivElement ( ) ; private TextBox input ; private final DivElement floater = Document . get ( ) . createDivElement ( ) ; private final DivElement resizeLine = Document . get ( ) . createDivElement ( ) ; private final DivElement resizeLineStable = Document . get ( ) . createDivElement ( ) ; private ArrayList < DivElement > rowHeaders = new ArrayList < DivElement > ( ) ; private ArrayList < DivElement > frozenRowHeaders = new ArrayList < DivElement > ( ) ; private ArrayList < DivElement > colHeaders = new ArrayList < DivElement > ( ) ; private ArrayList < DivElement > frozenColumnHeaders = new ArrayList < DivElement > ( ) ; private ArrayList < ArrayList < Cell > > rows = new ArrayList < ArrayList < Cell > > ( ) ; private ArrayList < Cell > topLeftCells = new ArrayList < Cell > ( ) ; private ArrayList < ArrayList < Cell > > topRightRows = new ArrayList < ArrayList < Cell > > ( ) ; private ArrayList < ArrayList < Cell > > bottomLeftRows = new ArrayList < ArrayList < Cell > > ( ) ; private StyleElement cellSizeAndPositionStyle = Document . get ( ) . createStyleElement ( ) ; private StyleElement headerMarginStyle = Document . get ( ) . createStyleElement ( ) ; private StyleElement sheetStyle = Document . get ( ) . createStyleElement ( ) ; private StyleElement shiftedBorderCellStyle = Document . get ( ) . createStyleElement ( ) ; private StyleElement selectionStyle = Document . get ( ) . createStyleElement ( ) ; private StyleElement cellRangeStyle = Document . get ( ) . createStyleElement ( ) ; private StyleElement editedCellFreezeColumnStyle = Document . get ( ) . createStyleElement ( ) ; private StyleElement hyperlinkStyle ; private StyleElement resizeStyle = Document . get ( ) . createStyleElement ( ) ; private StyleElement mergedRegionStyle = Document . get ( ) . createStyleElement ( ) ; private DivElement ppiCounter = Document . get ( ) . createDivElement ( ) ; private DivElement topLeftPane = Document . get ( ) . createDivElement ( ) ; private DivElement topRightPane = Document . get ( ) . createDivElement ( ) ; private DivElement bottomLeftPane = Document . get ( ) . createDivElement ( ) ; private final CopyPasteTextBox copyPasteBox ; private SpanElement fontWidthDummyElement = Document . get ( ) . createSpanElement ( ) ; private final VLazyExecutor scrollHandler ; private VLazyExecutor requester ; private SheetJsniUtil jsniUtil = GWT . create ( SheetJsniUtil . class ) ; private String sheetId ; private final HashMap < String , CellData > cachedCellData ; private Widget customEditorWidget ; private HashMap < String , Widget > customWidgetMap ; private HashMap < String , String > cellLinksMap ; private HashMap < String , String > cellCommentsMap ; private HashMap < String , CellComment > alwaysVisibleCellComments ; private HashMap < String , SheetImage > sheetImages ; private HashMap < String , PopupButtonWidget > sheetPopupButtons ; private HashMap < Integer , MergedCell > mergedCells ; private String cellCommentCellClassName ; private int selectedCellCol ; private int selectedCellRow ; private boolean cellRangeStylesCleared = true ; private boolean coherentSelection = true ; private boolean customCellEditorDisplayed ; private boolean editingCell ; private boolean editingMergedCell ; private boolean loaded ; private boolean selectingCells ; private int firstColumnIndex ; private int firstColumnPosition ; private int firstRowIndex ; private int firstRowPosition ; private int lastColumnIndex ; private int lastColumnPosition ; private int lastRowIndex ; private int lastRowPosition ; private int previousScrollLeft ; private int previousScrollTop ; private int scrollViewHeight ; private int scrollViewWidth ; private int ppi ; private int defRowH = - 1 ; private int [ ] definedRowHeights ; private int topFrozenPanelHeight ; private int leftFrozenPanelWidth ; private int verticalSplitPosition ; private int horizontalSplitPosition ; private int resizedRowIndex = - 1 ; private int resizedColumnIndex = - 1 ; private int resizeFirstEdgePos ; private int resizeLastEdgePos ; private boolean resizing ; private boolean resized ; private boolean columnResizeCancelled ; private final List < DivElement > resizeExtraHeaders ; private int cellCommentCellColumn = - 1 ; private int cellCommentCellRow = - 1 ; private int tempCol ; private int tempRow ; private final boolean isIE = com . vaadin . client . BrowserInfo . get ( ) . isIE ( ) ; private boolean displayRowColHeadings ; private Event mouseOverOrOutEvent ; private HashMap < MergedRegion , Cell > overflownMergedCells ; private VLazyExecutor cellCommentHandler = new VLazyExecutor ( SheetWidget . CELL_COMMENT_OVERLAY_DELAY , new ScheduledCommand ( ) { @ Override public void execute ( ) { } } ) ; private VLazyExecutor onMouseOverOrOutHandler = new VLazyExecutor ( 100 , new ScheduledCommand ( ) { @ Override public void execute ( ) { } } ) ; public SheetWidget ( SheetHandler view ) { } protected CopyPasteHandler getCopyPasteHandler ( ) { } @ Override protected void onAttach ( ) { } public SheetHandler getSheetHandler ( ) { } protected SheetJsniUtil getSheetJsniUtil ( ) { } @ Override public void onUnload ( ) { } protected void requestCells ( ) { } public void resetFromModel ( final int scrollLeft , final int scrollTop ) { loaded = false ; cachedCellData . clear ( ) ; if ( ppiCounter . hasParentElement ( ) ) { ppi = ppiCounter . getOffsetWidth ( ) ; } removeCustomCellEditor ( ) ; <START_BUG> selectionWidget . setPosition ( 0 , 0 , 0 , 0 ) ; <END_BUG> defRowH = - 1 ; Scheduler . get ( ) . scheduleDeferred ( new ScheduledCommand ( ) { @ Override public void execute ( ) { if ( ( ( ppi ) == 0 ) && ( ppiCounter . hasParentElement ( ) ) ) { ppi = ppiCounter . getOffsetWidth ( ) ; } updateSheetStyles ( ) ;

Fix:
selectionWidget . setPosition ( 1 , 1 , 1 , 1 ) ;