Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext GWT Premium Member gdlm's Avatar
    Join Date
    Jan 2012
    Location
    Belgium
    Posts
    208
    Vote Rating
    3
    gdlm is on a distinguished road

      0  

    Exclamation HBoxLayoutContainer has no constructor with an Appearance parameter - bug?

    HBoxLayoutContainer has no constructor with an Appearance parameter - bug?


    I want to style an HBoxLayoutContainer of mine.
    I think applying the Appearance pattern is the best way to go.
    Correct?

    So I made my custom Appearance extending BoxLayoutBaseAppearance.
    Then I wanted to write this code:

    Code:
    new HBoxLayoutContainer( new MyCustomAppearance() );
    but I get an error saying I can't pass an appearance as parameter; only an HBoxLayoutAlign parameter.

    I'm afraid a constructor of HBoxLayoutContainer with an Appearance parameter is missing.

  2. #2
    Ext GWT Premium Member gdlm's Avatar
    Join Date
    Jan 2012
    Location
    Belgium
    Posts
    208
    Vote Rating
    3
    gdlm is on a distinguished road

      0  

    Default


    I'll describe the situation where I think to need it:
    I have kind of a dashboard.
    On that dashboard I display five different dashboard items. (top row: 2, middle row: 2, bottom row: 1)
    First, for the dashboard items I used a ContentPanel because it has a header in which I can tell the user what the dashboard item is showing - the title.
    However, for two of the five dashboard items I needed to add a combo box right after the title text.
    ContentPanel has an addTool() but that placed the combo in the upper right corner. So,
    I decided to replace the ContentPanel by my own TitledContainer class being a VerticalLayoutContainer containing
    - as first sub component (the top content), an HBoxLayoutContainer (to hold the Label (=title) and possibly another widget (=the combo box)
    - as 2nd sub component (the main content), whatever other widget you want to display there (a grid or a chart in my case)

    Now for the top content I want
    - the title text and the combo box (if any) on a specific background color (cf. the ContentPanel's header)
    - the title text in a specific color

    Currently, since I can't use an appearance, I did it using
    Code:
    northContainer.addStyleName(resources.style().inner());
    with northContainer being my HBoxLayoutContainer sub component.

  3. #3
    Ext GWT Premium Member gdlm's Avatar
    Join Date
    Jan 2012
    Location
    Belgium
    Posts
    208
    Vote Rating
    3
    gdlm is on a distinguished road

      0  

    Default


    If you wonder why I posted the above, it's an answer to this comment from Sencha (that for some reason doesn't appear here):

    An HBoxLayoutContainer is intended to be an invisible container used to position and size your components in a particular horizontal arrangement. There is no constructor accepting an appearance because HBoxLayoutContainer has no appearance and isn't designed to be styled. Take a look at http://staging.sencha.com:8080/examp...ace:hboxlayout for an example of how HBoxLayoutContainer is typically used.

    What particular styling are you intending to do? There may be another container or composition of containers that more closely matches what you're trying to do.

    I've moved this thread to Discussion as this is not a bug.

  4. #4
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    Sorry for the confusion. I deleted my post and moved your thread back to Bugs shortly after I posted so as to give myself a chance to have a chat with another engineer. HBoxLayoutContainer wasn't intended to be styled, but the idea of styling an HBoxLayoutContainer isn't deserving of being dismissed out-of-hand.

    Thanks for posting the more detailed use case. I'll post another reply once I've had a chance to talk this over.

Thread Participants: 1