Any change in the Combobox.font, Combobox.fontstyle and Combobox.fontsize properties results in an automatic resizing of the Combobox so that the content is displayed correctly
Combobox.fontsize read/write property
Get or set the Combobox font size, a number that represent the font size in pixels.
Example
local ui = require "ui"
-- create a simple window
local win = ui.Window("Combobox.fontsize sample", 320, 200)
local combobox = ui.Combobox(win, {'Item 1', 'Item 2'}, 20,70)
combobox.fontsize = 12
combobox.width = 260
combobox.text = "Hello World in '"..combobox.font.."' "..combobox.fontsize.."px"
win:show()
-- update the user interface until the user closes the Window
repeat
ui.update()
until not win.visible