Skip to content

Commit

Permalink
- scroll path when outfit gets long
Browse files Browse the repository at this point in the history
  • Loading branch information
Continuities committed Jun 24, 2023
1 parent d6059af commit 6f67c12
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 9 additions & 0 deletions css/path.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,12 @@ div.perkRow {
div.perkRow .row_key {
float: none;
}

#pathScroller {
padding-top: 10px;
position: relative;
top: -10px;
max-height: 660px;
width: 475px;
overflow-y: auto;
}
6 changes: 4 additions & 2 deletions script/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ var Path = {
this.panel = $('<div>').attr('id', "pathPanel")
.addClass('location')
.appendTo('div#locationSlider');

this.scroller = $('<div>').attr('id', 'pathScroller').appendTo(this.panel);

// Add the outfitting area
var outfitting = $('<div>').attr({'id': 'outfitting', 'data-legend': _('supplies:')}).appendTo(this.panel);
var outfitting = $('<div>').attr({'id': 'outfitting', 'data-legend': _('supplies:')}).appendTo(this.scroller);
$('<div>').attr('id', 'bagspace').appendTo(outfitting);

// Add the embark button
Expand All @@ -44,7 +46,7 @@ var Path = {
click: Path.embark,
width: '80px',
cooldown: World.DEATH_COOLDOWN
}).appendTo(this.panel);
}).appendTo(this.scroller);

Path.outfit = $SM.get('outfit');

Expand Down

0 comments on commit 6f67c12

Please sign in to comment.