From a2a51feb5f66ff4879a3d02c940e68f6660f0eff Mon Sep 17 00:00:00 2001
From: Piotr Delawski <piotr.delawski@xwp.co>
Date: Sat, 5 Mar 2016 17:21:45 +0100
Subject: [PATCH] Remove horizontal gap next to scrollbar when opening a panel.
---
src/wp-admin/js/customize-controls.js | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/src/wp-admin/js/customize-controls.js b/src/wp-admin/js/customize-controls.js
index f514cf7..dbda12b 100644
a
|
b
|
|
1367 | 1367 | accordionSection.addClass( 'current-panel' ); |
1368 | 1368 | overlay.addClass( 'in-sub-panel' ); |
1369 | 1369 | container.scrollTop( 0 ); |
1370 | | if ( args.completeCallback ) { |
1371 | | args.completeCallback(); |
1372 | | } |
| 1370 | topPanel.attr( 'tabindex', '-1' ); |
| 1371 | backBtn.attr( 'tabindex', '0' ); |
| 1372 | panel._recalculateTopMargin(); |
| 1373 | _.delay( function() { |
| 1374 | backBtn.focus(); |
| 1375 | if ( args.completeCallback ) { |
| 1376 | args.completeCallback(); |
| 1377 | } |
| 1378 | }, 180 ); |
1373 | 1379 | } ); |
1374 | | topPanel.attr( 'tabindex', '-1' ); |
1375 | | backBtn.attr( 'tabindex', '0' ); |
1376 | | backBtn.focus(); |
1377 | | panel._recalculateTopMargin(); |
1378 | 1380 | } else { |
1379 | 1381 | siblings.removeClass( 'open' ); |
1380 | 1382 | accordionSection.removeClass( 'current-panel' ); |