@@ -1597,10 +1597,8 @@ <h1>Telegram Limits Editor</h1>
1597
1597
this . markDirty ( ) ;
1598
1598
} ) ;
1599
1599
1600
- setTimeout ( ( ) => {
1601
- itemName . style . height = "5px" ;
1602
- itemName . style . height = ( itemName . scrollHeight ) + "px" ;
1603
- } , 0 ) ;
1600
+ itemName . style . height = "5px" ;
1601
+ itemName . style . height = ( itemName . scrollHeight ) + "px" ;
1604
1602
1605
1603
const itemHint = document . createElement ( 'textarea' ) ;
1606
1604
itemHint . value = sectionLocale . items [ item . id ] . hint || '' ;
@@ -1617,10 +1615,8 @@ <h1>Telegram Limits Editor</h1>
1617
1615
this . markDirty ( ) ;
1618
1616
} ) ;
1619
1617
1620
- setTimeout ( ( ) => {
1621
- itemHint . style . height = "5px" ;
1622
- itemHint . style . height = ( itemHint . scrollHeight ) + "px" ;
1623
- } , 0 ) ;
1618
+ itemHint . style . height = "5px" ;
1619
+ itemHint . style . height = ( itemHint . scrollHeight ) + "px" ;
1624
1620
1625
1621
const itemContentContainer = document . createElement ( 'div' ) ;
1626
1622
itemContentContainer . classList . add ( 'item-content-container' ) ;
@@ -1643,10 +1639,8 @@ <h1>Telegram Limits Editor</h1>
1643
1639
this . markDirty ( ) ;
1644
1640
} ) ;
1645
1641
1646
- setTimeout ( ( ) => {
1647
- itemContent . style . height = "5px" ;
1648
- itemContent . style . height = ( itemContent . scrollHeight ) + "px" ;
1649
- } , 0 ) ;
1642
+ itemContent . style . height = "5px" ;
1643
+ itemContent . style . height = ( itemContent . scrollHeight ) + "px" ;
1650
1644
1651
1645
const itemContentPremiumContainer = document . createElement ( 'div' ) ;
1652
1646
itemContentPremiumContainer . classList . add ( 'item-content-premium-container' ) ;
@@ -1673,10 +1667,8 @@ <h1>Telegram Limits Editor</h1>
1673
1667
this . markDirty ( ) ;
1674
1668
} ) ;
1675
1669
1676
- setTimeout ( ( ) => {
1677
- itemContentPremium . style . height = "5px" ;
1678
- itemContentPremium . style . height = ( itemContentPremium . scrollHeight ) + "px" ;
1679
- } , 0 ) ;
1670
+ itemContentPremium . style . height = "5px" ;
1671
+ itemContentPremium . style . height = ( itemContentPremium . scrollHeight ) + "px" ;
1680
1672
1681
1673
const idContainer = document . createElement ( 'div' ) ;
1682
1674
idContainer . classList . add ( 'id-container' ) ;
@@ -1780,10 +1772,8 @@ <h1>Telegram Limits Editor</h1>
1780
1772
idContainer . textContent = itemId ;
1781
1773
} ) ;
1782
1774
1783
- setTimeout ( ( ) => {
1784
- newItemName . style . height = "5px" ;
1785
- newItemName . style . height = ( newItemName . scrollHeight ) + "px" ;
1786
- } , 0 ) ;
1775
+ newItemName . style . height = "5px" ;
1776
+ newItemName . style . height = ( newItemName . scrollHeight ) + "px" ;
1787
1777
1788
1778
const newItemHint = document . createElement ( 'textarea' ) ;
1789
1779
newItemHint . placeholder = 'Hint' ;
@@ -1796,10 +1786,8 @@ <h1>Telegram Limits Editor</h1>
1796
1786
newItemHint . style . height = ( newItemHint . scrollHeight ) + "px" ;
1797
1787
} ) ;
1798
1788
1799
- setTimeout ( ( ) => {
1800
- newItemHint . style . height = "5px" ;
1801
- newItemHint . style . height = ( newItemHint . scrollHeight ) + "px" ;
1802
- } , 0 ) ;
1789
+ newItemHint . style . height = "5px" ;
1790
+ newItemHint . style . height = ( newItemHint . scrollHeight ) + "px" ;
1803
1791
1804
1792
const newItemContent = document . createElement ( 'textarea' ) ;
1805
1793
newItemContent . placeholder = 'Limit Description' ;
@@ -1812,10 +1800,8 @@ <h1>Telegram Limits Editor</h1>
1812
1800
newItemContent . style . height = ( newItemContent . scrollHeight ) + "px" ;
1813
1801
} ) ;
1814
1802
1815
- setTimeout ( ( ) => {
1816
- newItemContent . style . height = "5px" ;
1817
- newItemContent . style . height = ( newItemContent . scrollHeight ) + "px" ;
1818
- } , 0 ) ;
1803
+ newItemContent . style . height = "5px" ;
1804
+ newItemContent . style . height = ( newItemContent . scrollHeight ) + "px" ;
1819
1805
1820
1806
const newItemContentPremiumContainer = document . createElement ( 'div' ) ;
1821
1807
newItemContentPremiumContainer . classList . add ( 'item-content-premium-container' ) ;
@@ -1837,10 +1823,8 @@ <h1>Telegram Limits Editor</h1>
1837
1823
newItemContentPremium . style . height = ( newItemContentPremium . scrollHeight ) + "px" ;
1838
1824
} ) ;
1839
1825
1840
- setTimeout ( ( ) => {
1841
- newItemContentPremium . style . height = "5px" ;
1842
- newItemContentPremium . style . height = ( newItemContentPremium . scrollHeight ) + "px" ;
1843
- } , 0 ) ;
1826
+ newItemContentPremium . style . height = "5px" ;
1827
+ newItemContentPremium . style . height = ( newItemContentPremium . scrollHeight ) + "px" ;
1844
1828
1845
1829
addItemPanelRow . appendChild ( idContainer ) ;
1846
1830
0 commit comments