x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Embedded Widget in another Widget is not sizing to content?

So I am stumped..

I made one Widget called Store and another Widget called Store Menu that has some additional graphics and tabs that I could control separately because the Main Store Widget is gonna have a lot of different elements so I thought it would be easier to make them separate widgets and then add them the Store Widget as the Master Widget for the Store.

However, when I get the StoreMenu Widget that is in a Horizontal Box inside of the canvas panel and drag that into the main Store Widget for some reason the Box it's in is really super huge and when I click Size to content nothing changes, the Menu Tabs are still at the very bottom even though I placed it in the center beforehand and it also has no padding either.

Any ideas how I can fix this problem or what I am doing wrong? Is there a better way to do this if multiple assets are needed to be added into a Widget such as for a store that has lots of stuff going into it?

alt text

Product Version: UE 4.18
Tags:
more ▼

asked Oct 03 '18 at 01:35 AM in Using UE4

avatar image

Deygus
113 14 23 26

avatar image Shadow Boss12 Oct 03 '18 at 02:19 AM

hello. what are you trying to do ? do u want to resize the contents of the horizontal box ?

avatar image Deygus Oct 03 '18 at 02:26 AM

Hi Shadow, sorry about the confusion, I am terrible at explaining stuff sometimes.

The screenshot is of the Store Widget (Master) but when I dragged in the Widget containing the Store Tabs onto the Store Widget as seen above that is what happened.

I was expecting to see the Orange Tabs circled in red in my screenshot appear inside of the related Canvas circled in green when I added it to the Store Widget so I could move it around properly but it sticks outside of that canvas box for some odd reason. Even if I tick the size to content no difference, same if I change the padding and I have no idea why.

The Orange Tabs there are actually from the second Store Menu widget there and they are already in a horizontal box as well in that widget and centered in the Canvas so I wasn't sure why this happened.

The only other idea I had was just to remove it and just do everything in the main Store Widget but with all the buttons and elements it'll get pretty messy with a long item list from a lot of stuff going into it mostly. I wasn't sure if there was a better approach.

I was pretty much just trying to organize and keep it easier to control the sections of each part of the Store Widget.

avatar image Shadow Boss12 Oct 03 '18 at 02:42 AM

okay no problem. i will try and create the same system , which is a store of different sections . if i am done i will post it.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

HELLO. (Check the screenshots for setup). The main store will contain tabs or sections which are buttons inside a horizontal box . each button will lead you to a new section of items. the new section is the widget corresponding to the button in the main store widget . you can add animation for switching between the differentalt text sections and u can make the text dynamic if u want. hope this helps ? (Check the screenshots for setup).

1.png (225.6 kB)
2.png (241.2 kB)
3.png (339.7 kB)
4.png (376.7 kB)
more ▼

answered Oct 03 '18 at 03:56 AM

avatar image

Shadow Boss12
181 1 3 5

avatar image Deygus Oct 04 '18 at 11:30 PM

This is very helpful thank you.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

It sounds like you need to use Size Box and/or Scale Box container widgets. Size To Content just sets the widget's own boundaries based on how big it is (helpful for centering and aligning), but doesn't grow or shrink it like the aforementioned container widgets do.

more ▼

answered Oct 04 '18 at 01:58 AM

avatar image

mightyenigma
3.8k 18 24 21

avatar image Deygus Oct 04 '18 at 11:30 PM

Yes, honestly that is the exact problem, I am terrible at explaining things sadly.. -_-

I can't figure out why the heck the widget I added to the other widget is offset like that when I stuck it in the middle of the other widget and then it appeared like this and how to fix it..

avatar image mightyenigma Nov 22 '18 at 02:42 PM

Could be canvas positioning

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question