Giter Site home page Giter Site logo

Comments (6)

nmgwddj avatar nmgwddj commented on July 16, 2024

float 属性不太建议使用,不知道你是什么场景必须用到这个属性?当然如果代码方面缺陷我们还是一样要修复的,欢迎提交 PR 来帮助我们改善这个问题。

from nim_duilib_framework.

smallevilbeast avatar smallevilbeast commented on July 16, 2024

一些特殊的需求, 需要将某些控件显示在上层特定的位置, 不占位

from nim_duilib_framework.

smallevilbeast avatar smallevilbeast commented on July 16, 2024

12
类似上面的例子
图片可以在左上角浮动显示,右下角浮动显示,剧中浮动显示 (不占位)

from nim_duilib_framework.

smallevilbeast avatar smallevilbeast commented on July 16, 2024

好像没啥大问题, 我关了这个issue吧, 明天再提交一个pos属性的pr

from nim_duilib_framework.

smallevilbeast avatar smallevilbeast commented on July 16, 2024

浮动使用方法

将要设置为浮动状态的控件放到当前父节点下的最后位置
设置float="true"开启浮动状态并且设置width和height
使用halign和valign来控制在父容器中的浮动位置, 如在右下角显示 halign="right" valign="bottom"

from nim_duilib_framework.

nmgwddj avatar nmgwddj commented on July 16, 2024

建议使用父容器 Box 来替代控件的 float 属性实现浮动效果:#8

from nim_duilib_framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.