Skip to content

Commit

Permalink
Merge pull request #158 from meetqy/main
Browse files Browse the repository at this point in the history
fix: Icons under taskbar #114
  • Loading branch information
jelveh authored Mar 22, 2024
2 parents 7496a2a + be7859e commit fe55497
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/UI/UIItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,14 @@ function UIItem(options){
desktop_item_positions[$(el_item).attr('data-uid')] = ui.position;
save_desktop_item_positions()
}

// If item is dropped on the taskbar, reset its position
if(ui.position.top >= window.desktop_height - window.taskbar_height) {
el_item.style.position = 'absolute';
el_item.style.left = ui.originalPosition.left + 'px';
el_item.style.top = ui.originalPosition.top + 'px';
}

$('.item-selected-clone').remove();
$('.draggable-count-badge').remove();
// re-enable all droppable UIItems that are not a dir
Expand Down

0 comments on commit fe55497

Please sign in to comment.