提交 b1f86081 编写于 作者: P Phil Hughes

Merge branch 'job-details-increase-deboune' into 'master'

Use throttle when window is resized

Closes #33222

See merge request !11857
......@@ -64,7 +64,7 @@ window.Build = (function () {
$(window)
.off('resize.build')
.on('resize.build', this.sidebarOnResize.bind(this));
.on('resize.build', _.throttle(this.sidebarOnResize.bind(this), 100));
this.updateArtifactRemoveDate();
......@@ -250,6 +250,7 @@ window.Build = (function () {
Build.prototype.sidebarOnResize = function () {
this.toggleSidebar(this.shouldHideSidebarForViewport());
this.verifyTopPosition();
if (this.$scrollContainer.getNiceScroll(0)) {
......
......@@ -130,6 +130,3 @@
= build.id
- if build.retried?
%i.fa.fa-refresh.has-tooltip{ data: { container: 'body', placement: 'bottom' }, title: 'Job was retried' }
:javascript
new Sidebar();
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册