umco / umbraco-vorto

1:1 multilingual property editor wrapper for Umbraco
https://our.umbraco.org/projects/backoffice-extensions/vorto
MIT License
44 stars 42 forks source link

Content dosn't render properly #51

Closed lele7 closed 8 years ago

lele7 commented 8 years ago

In 7.3.4 if I switch the language... the content of the grid dosn't render properly.

image

mattbrailsford commented 8 years ago

This is a core issue due to grid styles making assumptions of it's placement. See issue #50 for suggested work around.

runegronkjaer commented 8 years ago

Hi Matt,

I don't think it has to do with the grid styles and issue #50. I get it as well and what happens is that:

  1. You load the page and the grid displays fine wrapped in Vorto
  2. You then change language the first time and everything displays fine in the new language.
  3. You change back to the first language. Now the error from above will happen. The richtext editor will not load the tiny mce, like the screenshot above, and other grid editors will also not render.

I have tried looking through the Vorto code to find where the magic is happening, but I can't really put my finger on it. Maybe the grid needs to be initialized again somehow?

lele7 commented 8 years ago

In my case this helps:

you have to change this in the vorto.html file - ng-if to ng-show https://github.com/umco/umbraco-vorto/blob/master/src/Our.Umbraco.Vorto/Web/UI/App_Plugins/Vorto/views/vorto.html#L40

Sometimes the titles and specified elements aren't rended properly so you have to refresh the page or otherwise you have to do the suggested work around of matt. (the css styling stuff isn't loading properly)

I hope this helps.

runegronkjaer commented 8 years ago

Cool. I will check it out then.