55143681 Posted October 9, 2018 Share Posted October 9, 2018 See the image file,I use a UniTreeView and a UniImageList to display a item node's image,but I can only use a 16*16 ico,I want to use a bigger ico,how to use 32*32 ico? Quote Link to comment Share on other sites More sharing options...
GerhardV Posted October 9, 2018 Share Posted October 9, 2018 Add the following CustomCSS: You will also need to change the image sizes for TUniNativeImageList to 32 and load 32px images. Play around with the settings below to get the desired alignment for the text and elbow indicators. .x-tree-icon { width: 32px; height: 32px; line-height: 32px; } .x-tree-elbow-img { width: 18px; height: 30px; line-height: 32px; } .x-tree-node-text { line-height: 24px; } Quote Link to comment Share on other sites More sharing options...
55143681 Posted October 10, 2018 Author Share Posted October 10, 2018 On 10/9/2018 at 5:10 PM, GerhardV said: Add the following CustomCSS: You will also need to change the image sizes for TUniNativeImageList to 32 and load 32px images. Play around with the settings below to get the desired alignment for the text and elbow indicators. .x-tree-icon { width: 32px; height: 32px; line-height: 32px; } .x-tree-elbow-img { width: 18px; height: 30px; line-height: 32px; } .x-tree-node-text { line-height: 24px; } works well ,thank you very much. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.