Skip to content

Commit

Permalink
Fixed #5014
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici authored and Çağatay Çivici committed Jan 29, 2018
1 parent 6fbb54b commit 54f5a51
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/scrollpanel/scrollpanel.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
}

.ui-scrollpanel-hidden {
display: none;
display: hidden;
}

.ui-scrollpanel:hover .ui-scrollpanel-bar,
Expand Down
4 changes: 4 additions & 0 deletions src/app/components/scrollpanel/scrollpanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ export class ScrollPanel implements AfterViewInit, OnDestroy {
}
}

refresh() {
this.moveBar();
}

}

@NgModule({
Expand Down
20 changes: 20 additions & 0 deletions src/app/showcase/components/scrollpanel/scrollpaneldemo.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,26 @@ <h3>Styling</h3>
</table>
</div>

<h3>Methods</h3>
<div class="doc-tablewrapper">
<table class="doc-table">
<thead>
<tr>
<th>Name</th>
<th>Parameters</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>refresh</td>
<td>-</td>
<td>Refreshes the position and size of the scrollbar.</td>
</tr>
</tbody>
</table>
</div>

<h3>Dependencies</h3>
<p>None.</p>
</p-tabPanel>
Expand Down

0 comments on commit 54f5a51

Please sign in to comment.