-
increase heigth of label of the menuBar component
I am working with Flash cs6 as2 components, menu and menuBar.
The bottom of the letters that have a tail get cutoff. when viewing the menu.
I have tried to change the font size, which does increase the font, but the problem still exists. I have also tried the standard fonts..
Anyone know how I can increase the height of the drop-down label in the component?
-
.
Hi,
Mess around with the numbers to suit.
menu.rowHeight = 30;
menu.fontSize = 24;
rowHeight is the one you require most I think to combat the font cutting
if you need greater customisation and hints try here http://www.ultrashock.com/tutorials/...mponents13.php
Last edited by fruitbeard; 01-08-2015 at 12:54 PM.
-
Originally Posted by fruitbeard
it doesnt work for me
attached you will see my problemproblem.jpg
where that is written is the menuBar and its instance name is "my_mb"
Last edited by Niuri; 01-08-2015 at 01:05 PM.
-
.
Hi,
well row height should fix that exact problem, maybe attach your *.fla and lets sort it out.
Or at least post the code you use
Heres a file
http://fruitbeard.net/uploaded/menubar.zip
and here is the code used
PHP Code:
import mx.controls.Menu; import mx.controls.MenuBar;
var menuBar:MenuBar;
var menu:Menu = menuBar.addMenu("Prent"); menu.addMenuItem({label:"Drop menu 1", data:"A", value:"1"}); menu.addMenuItem({label:"Drop menu 2", data:"B", value:"2"}); menu.addMenuItem({label:"Drop menu 3", data:"C", value:"3"}); menu.rowHeight = 40; menu.fontSize = 14;
var mbListener:Object = new Object(); mbListener.change = function(e:Object) { var menuClick:Object = e.menuItem; trace("Label: " + menuClick.attributes.label); trace("Data: " + menuClick.attributes.data); trace("Value: " + menuClick.attributes.value); };
menu.addEventListener("change",mbListener);
Last edited by fruitbeard; 01-08-2015 at 01:26 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|