title: Removing Horizontal Scroll bar for page
body: <p>I have a page with multy control.</p>
  
  <p>There is no horizontal scroolbar in the page. But when I add an AjaxControlToolkit.Editro or a <code>treeview</code> in page, a horizontal scroll automatically adds to the page.</p>
  
  <p>for example, when i add a treeview on page .</p>
  
  <blockquote>
    <p>$(document).width()=11061</p>
    
    <p>$(window).width()=1349</p>
  </blockquote>
  
  <p>I set width for my control but horizontal scroll appeared again.</p>
  
  <p>Code :  </p>
  
  <pre><code>  &lt;div class="row"&gt;
     &lt;span style="width: 100px" class="rowtitle"&gt;کلمات کلیدی&lt;/span&gt;
     &lt;asp:TextBox ID="KeywordTextBox" Width="600px" runat="server" /&gt;
     &lt;asp:RequiredFieldValidator Text="*" ID="KeywordRFV" runat="server" ControlToValidate="KeywordTextBox" ForeColor="Red" ValidationGroup="Save" ErrorMessage="کلمات کلیدی را وارد کنید." /&gt;
    &lt;/div&gt;
    &lt;div class="row" style="height: 300px"&gt;
     &lt;span style="width: 100px" class="rowtitle"&gt;توضیحات کامل&lt;/span&gt;
     &lt;HTMLEditor:Editor ID="DescriptionHtmlEditor" runat="server" Height="300px" Width="80%" AutoFocus="true" /&gt;
     &lt;asp:RequiredFieldValidator Text="*" ID="DescriptionRFV" runat="server" ControlToValidate="DescriptionHtmlEditor" ForeColor="Red" ValidationGroup="Save" ErrorMessage="توضیحات را وارد کنید ." /&gt;
     &lt;/div&gt;
  </code></pre>
  
  <p>TreeView:</p>
  
  <pre><code>&lt;table width="100%"&gt;
              &lt;tr&gt;
                  &lt;td style="padding: 5px; width: 40%; overflow: hidden" valign="top"&gt;
                      &lt;asp:TreeView  ShowLines="True" ID="TreeView" runat="server" Width="200px" OnSelectedNodeChanged="TreeView_SelectedNodeChanged" LineImagesFolder="~/TreeLineImages" ExpandDepth="0"&gt;
                          &lt;SelectedNodeStyle BackColor="#E8DFCE" /&gt;
                      &lt;/asp:TreeView&gt;
                  &lt;/td&gt;
                  &lt;td style="width: 60%" valign="top"&gt;
                      &lt;div class="row" style="text-align: left"&gt;
                          &lt;asp:ImageButton ID="btncancle" runat="server" ImageUrl="~/images/btnCancel.png" OnClick="btncancle_Click" ToolTip="انصراف" /&gt;
                          &lt;asp:ImageButton ID="btnsave" runat="server" ImageUrl="~/images/btnSave.png" OnClick="btnsave_Click" ToolTip="ذخیره" ValidationGroup="Save" /&gt;
                          &lt;asp:ImageButton ID="btndel" OnClick="btndel_Click" OnClientClick="return confirm('آیا از حذف اطمینان دارید ؟');" runat="server" ImageUrl="~/images/btnDelete.png" ToolTip="حذف" /&gt;
                          &lt;asp:ImageButton ID="btnedit" runat="server" ImageUrl="~/images/btnEdit.png" OnClick="btnedit_Click" ToolTip="ویرایش" /&gt;
                          &lt;asp:ImageButton ID="btnadd" runat="server" ImageUrl="~/images/btnAdd.png" OnClick="btnadd_Click" ToolTip="جدید" /&gt;
                      &lt;/div&gt;
                      &lt;input type="hidden" runat="server" id="Mode" /&gt;
                      &lt;asp:Panel ID="Panel" runat="server" Enabled="false" Style="padding: 0"&gt;
                          &lt;div class="row"&gt;
                              &lt;span class="rowtitle"&gt;نام&lt;/span&gt;
                              &lt;asp:TextBox ID="CategoryTextBox" runat="server" MaxLength="300" /&gt;
                              &lt;asp:RequiredFieldValidator ForeColor="Red" ID="CategoryRFV" runat="server" ValidationGroup="Save" ControlToValidate="CategoryTextBox" ErrorMessage="*"&gt;&lt;/asp:RequiredFieldValidator&gt;
                          &lt;/div&gt;
  
                          &lt;asp:Label runat="server" ID="ErrorLabel" ForeColor="Red" /&gt;
                      &lt;/asp:Panel&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
  </code></pre>
  
  <p>I use this code in the &lt; Body > tag</p>
  
  <blockquote>
    <p>overflow-x:hidden;</p>
  </blockquote>
  
  <p>to remove the horizontal scroll, but when user minimizes window, the page doesn't show scroll.</p>