Depends on the bulb and uvb percentage, if its a 10.0 or a 12% its completely fine as a t5 bulb to be put in there. If its a t5 14% then its best to have more height, however I've noticed my female beardie likes basking at about 5 inches away from her one week old arcadia T5 HO 14%
uvb bulb thats mounted outside on her screen.
Its good to give them a variety of options, high, average, low and barely any uvb levels. So if they want to bask at a higher uvb index they can, and if they want to go to a lower spot they should be able to.
< <<< not surprising , if the mesh lid is fine mesh , the mesh is cutting the UVA and UVB flux by 40% (maybe even 45%) and cancelling out the benefit of a parabolic (focusing) reflector hood. So the dragon doesn't sense 14%UVB , it senses more like 6% or 7% UVB and similar with UVA.
UVB flux in summer is over 300 microW UVB / sq.cm for most the day in the natural range of bearded dragons too, and it's very common to dragons backing on termite mound, a tree stump, farm fence post in full sunlight.
from http://www.uvguide.co.uk/uvinnature.htm
Note the UVB flux for Alice Springs which is considered prime central bearded dragon native habitat.
Data for Alice Springs
Location 23°42′0″S 133°52′12″E.
Basically the t5 will be fine and honestly better overall for the health of your animal if you only go with a 24" bulb. Make sure to get a 10.0 or a 12% bulb.
if you opt for a 14%UVB tube , increase the UVB flux in the curves for the 12%UVB tube below by 14/12 = 117%
Naked globe or tube
with reflector (hoods/domes) to focus UV :
or shift the basking distance to achieve 180-200 microW UVB/ sq.cm for the 12%UVB tube closer by 12/14 = so 30cm become 30 14/12 = 35cm (14 inches) is now the required distance to the basking spot.
Personally I prefer either a 36" or a 46" bulb for 48" long enclosures however thats just me and I provide areas where my beardies can get out of the uvb if needed.