From 509d5fa501375e038e8866057d277412cde0cee9 Mon Sep 17 00:00:00 2001
From: Olga Lytvynenko <olytvynenko@magento.com>
Date: Tue, 6 Sep 2016 17:45:30 +0300
Subject: [PATCH] MAGETWO-55393: [Github #5636] Many storeviews break the page

---
 .../catalog/product/attribute/labels.phtml    | 40 ++++++++++---------
 1 file changed, 21 insertions(+), 19 deletions(-)

diff --git a/app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/attribute/labels.phtml b/app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/attribute/labels.phtml
index dd90b3b57de..4a3219efbb9 100644
--- a/app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/attribute/labels.phtml
+++ b/app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/attribute/labels.phtml
@@ -17,25 +17,27 @@
     </div>
     <div class="fieldset-wrapper-content in collapse" id="manage-titles-content">
         <fieldset class="admin__fieldset fieldset">
-            <table class="admin__control-table" id="attribute-labels-table">
-                <thead>
-                <tr>
-                    <?php foreach ($block->getStores() as $_store): ?>
-                        <th class="col-store-view"><?php /* @escapeNotVerified */ echo $_store->getName() ?></th>
-                    <?php endforeach; ?>
-                </tr>
-                </thead>
-                <tbody>
-                <tr>
-                    <?php $_labels = $block->getLabelValues() ?>
-                    <?php foreach ($block->getStores() as $_store): ?>
-                        <td class="col-store-view">
-                            <input class="input-text<?php if ($_store->getId() == \Magento\Store\Model\Store::DEFAULT_STORE_ID): ?> required-option<?php endif; ?>" type="text" name="frontend_label[<?php /* @escapeNotVerified */ echo $_store->getId() ?>]" value="<?php echo $block->escapeHtml($_labels[$_store->getId()]) ?>"<?php if ($block->getReadOnly()):?> disabled="disabled"<?php endif;?>/>
-                        </td>
-                    <?php endforeach; ?>
-                </tr>
-                </tbody>
-            </table>
+            <div class="admin__control-table-wrapper">
+                <table class="admin__control-table" id="attribute-labels-table">
+                    <thead>
+                    <tr>
+                        <?php foreach ($block->getStores() as $_store): ?>
+                            <th class="col-store-view"><?php /* @escapeNotVerified */ echo $_store->getName() ?></th>
+                        <?php endforeach; ?>
+                    </tr>
+                    </thead>
+                    <tbody>
+                    <tr>
+                        <?php $_labels = $block->getLabelValues() ?>
+                        <?php foreach ($block->getStores() as $_store): ?>
+                            <td class="col-store-view">
+                                <input class="input-text<?php if ($_store->getId() == \Magento\Store\Model\Store::DEFAULT_STORE_ID): ?> required-option<?php endif; ?>" type="text" name="frontend_label[<?php /* @escapeNotVerified */ echo $_store->getId() ?>]" value="<?php echo $block->escapeHtml($_labels[$_store->getId()]) ?>"<?php if ($block->getReadOnly()):?> disabled="disabled"<?php endif;?>/>
+                            </td>
+                        <?php endforeach; ?>
+                    </tr>
+                    </tbody>
+                </table>
+            </div>
         </fieldset>
     </div>
 </div>
-- 
GitLab