Results 1 to 6 of 6

Thread: Question about Panel

  1. #1

    Question Question about Panel

    I execute following code
    Code:
    <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    <html>
    <link rel="stylesheet" type="text/css" href="resources/css/ext-all.css" />
    <script type="text/javascript" src="adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="ext-all.js"></script>
    <script>
    Ext.onReady(function(){
      new Ext.Panel({
      renderTo:"hello",
      title:"container",
      width:600,
      layout:"form",
      hideLabels: false,
      labelAlign:"right",
      height:150,
      defaultType:'textfield',
      items:[{fieldLabel:"Name",name:"name"},
              {fieldLabel:"Address",name:"address"},
              {fieldLabel:"Tel",name:"tel"}
          ]
      });
    });
    </script>
    <body>
    <div id="hello"/>
    </body>
    </html>
    Question 1:After name tag,it is a textarea,but this textarea is only left,right and top line,there is no botton line! Why?

    Question 2:I look up Panel API, Panel contains shadow and shadowOffset attribute, and I want to try it,so I use following statement
    Code:
    labelAlign:"right",
    shadow:true,
    shadowOffset:20,
    height:150,
    When I run above code,I don't find any shadow,where is wrong?

    How to solve above two questions?
    Thanks in advance!

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    1. I have no idea what you mean.

    2. Shadow is only if the Panel is floating.

  3. #3

    Default

    Quote Originally Posted by Animal View Post
    1. I have no idea what you mean.

    2. Shadow is only if the Panel is floating.
    Question 1:
    should be follows:
    ???_______________
    Name |______________|

    But it shows
    ???_______________
    Name | ????????|

    There is no botton line,why?

    Question 2: Would you give me a example?

    Thanks

  4. #4
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    OK, then the questions are

    Which browser?

    Which ExtJS version?

    Are you using any of your own CSS rules?

    Because I don't see that.

  5. #5

    Default

    IE7.0
    ExtJS version is 3.2.1
    I don't use any my CSS rule

  6. #6
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    IE7 rendering was a bit hit and miss.

    I don't have IE7 any more, so I can't help.

Similar Threads

  1. A question about autoLoad in Panel
    By marsxu in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 1 Jun 2010, 2:28 AM
  2. Basic panel question
    By dreamcaster in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 9 Feb 2010, 10:58 PM
  3. Quick panel question
    By Jangla in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 26 May 2009, 7:12 AM
  4. Collapsible panel question
    By phunnel in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 19 Jun 2008, 11:46 AM
  5. Form Panel Question
    By Mango_lier in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 21 Jan 2008, 3:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •