Closed BillHeaton closed 4 years ago
I am not able to reproduce this issue. It seems more a CSS/styling issue. Seems you are using some Checkbox styling plugin in your code (based on the screenshot you shared). You may need to check how you are initializing that.
I agree. It only happens on the first paint of the detail screen. It's like something isn't being set on the first pass. I'll redo it on the "Plain Jane" environment again.
On Oct 8, 2019, at 8:12 AM, Kartik Visweswaran notifications@github.com wrote:
I am not able to reproduce this issue. It seems more a CSS/styling issue. Seems you are using some Checkbox styling plugin in your code (based on the screenshot you shared). You may need to check how you are initializing that.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kartik-v/yii2-tree-manager/issues/256?email_source=notifications&email_token=AAUVA2NFTADSNAAINUODEUTQNSPNFA5CNFSM4I6NCCKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAUQW6A#issuecomment-539560824, or mute the thread https://github.com/notifications/unsubscribe-auth/AAUVA2PJVVDPOVFQMCUD5I3QNSPNFANCNFSM4I6NCCKA.
Created a new project "testbed." It has only following requires and their dependencies:
Followed Steps 1-4 and using:
'displayValue' => 5,
I'm using site/index.php for the treeview widget. Might be caused in the default Yii2 basic application as its header is messed up from BS4 too. I'll simplify that and see if the problem goes away.
If I move to any other node is the management portion displays correctly. same behavior on Firefox and Chrome except the two columns stack L-R correctly. Only safari moves the detail below treeview.
You need to ensure you do not wrongly have both bootstrap 3 and bootstrap 4 assets loading on your page. Can typically happen if you are using default widgets.
That opened a big can of worms. Restarting the testbed. Do you know any good howto's on the process switching from bootstrap3 to bootstrap4? If not, I think I'll write one.
Will use yii2-bootstrap4/docs/guide/README.md as a starting point
If you use all of Krajee widgets - they allow you to selectively load Bootstrap 3 or Bootstrap 4 by setting bsVersion
. So if you have globally set this to 4.x
all Krajee widgets will load BS4 assets only. But if you use other widgets be careful of their dependency (like yii2-bootstrap loads BS3). Also Yii2 app basic or advanced templates by default loads yii2 bootstrap assets in the view layouts which loads BS3 libraries. You need to override all view layouts or create your own custom BS4 view layout. I would recommend configuring yii2 asset manager component in your yii2 config to ensure BS4 Js/Css only for your use case and ensure any BS3 libraries do not load any assets.
Ack. That was the can of worms I was talking about. I'll report progress as I do the HowTo. I want to start with nothing and make it all the way to being Bootstrap4 ready using the basic application.
On Oct 8, 2019, at 11:33 PM, Kartik Visweswaran notifications@github.com wrote:
If you use all of Krajee widgets - they allow you to selectively load Bootstrap 3 or Bootstrap 4 by setting bsVersion. So if you have globally set this to 4.x all Krajee widgets will load BS4 assets only. But if you use other widgets be careful of their dependency (like yii2-bootstrap loads BS3). Also Yii2 app basic or advanced by default loads yii2 bootstrap assets which loads BS3 libraries.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kartik-v/yii2-tree-manager/issues/256?email_source=notifications&email_token=AAUVA2IGLYCBJEQIFD4YJVTQNV3KXA5CNFSM4I6NCCKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAWZGPI#issuecomment-539857725, or mute the thread https://github.com/notifications/unsubscribe-auth/AAUVA2O5DAYXOYDLRA7S4JTQNV3KXANCNFSM4I6NCCKA.
Have the bullet points done. One cosmetic change needed. Need to flesh out the article. Relatively painless to do but not for novices.
It' one in the morning, so going to bed. Will write it up and post tomorrow.
Refer enhancement #258 which includes enhanced styled custom BS4 checkboxes and radios by default. Cross check updated demo as well to see how this renders by default on a pure BS4 environment. Currently closing this issue. But please feel free to record your findings here for others to note. Thanks.
Howto now online at http://www.winkwinknodnod.net/yii2-bs4/
You have permission to freely copy under the same license at Kartik.
Will restart the testbed to make it a pure bootstrap4 environment
@kartik-v Doing the pure bootstrap4 from http://www.winkwinknodnod.net/yii2-bs4/ only had one weirdness.
yii2-krajee-base/initBsAssets() was selecting bootstrap instead of bootstrap4 which of course didn't exist because it had been uninstalled.
The fix was to add bsVersion = '4.x' in config/params.php to set it globally instead of in the module or the widget. Which makes sense to me because we only have bootstrap4 in the water.
This one can remain closed. Feel free to put the howto up where every it makes sense. There are some other issues but still need to research and they can go into their own pile
Prerequisites
master
branch of yii2-tree-manager.Steps to reproduce the issue
Expected behavior and actual behavior
When I follow those steps, I see...
I was expecting... Normal display as in Step 6.
Environment
Browsers
Operating System
Libraries
Isolating the problem