언어 설정

Menu
Sites
Language
How to control popup size?

Hi,

How to control popup size as how much we need, i was used evas_object_resize(popup, 360/2, 360/2); also but it is not giving proper output, please help to fix popup window in predefined size.

Responses

2 댓글
Armaan-Ul- Islam

The nature/principle of Tizen Native PopUp is to size up according to the contents it is holding.

 

As far as I've seen: Box, Grid, Table, Popup etc components behave like an empty bag, The more you pack up components the size increases, and the more you unpack size decreases. You can't just define some fixed size like 600x400 or 200x100, It is variable depending on the number and size of Internal components/widgets/text.

 

For defining size there is Sizen Hint API. You may use the evas_object_size_hint_weight_set() function but the documentation stricty mentions:

"This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate.This is a hint on how a container object should resize a given child within its area."

So, In summary you can't give popup window a predefined size. It will adjust it's size based on internal content (as minimum size as possible).

 

References:

Popup API Reference

Size Hints

 

An Additional Tip:

"As you are working with PopUps. Check out the Sample Project: Native> UI> "UI Components".

And the code on: src > popup.c

You would find different sorts of popup example code, play with them and run the app. I recommend this code as a good tool to learn.

 

 

victory yuvaraju

Tq Armaan-Ul-Islam,for Giving clearity on popup functions