none
Probleme de fenetre modal en mode page largeur fixe RRS feed

  • Question

  • Bonjour à tous,

    J'ai un soucis que je n'arrive pas à résoudre, j'ai modifié une master page (en partant de la V4.master) pour avoir une largeur de page (dans mes sites d'équipe) qui laisserait apparaitre un fond d'écran.

    Pour cela au lieu de fixer une largeur en point, je l'ai fixé en %, c'est à dire que ma page occupe toujours 90% de la largeur d'écran, l'intêret c'est que les utilisateurs qui ont des grand écran ne sont pas pénalisés par une page minuscule, enfin bref mon soucis porte sur les fenêtres modales qui s'ouvre lorsqu'on veut ajouter un ou plusieurs document dans une bibliothéque.

    Les fenêtres semble tronqués, ce qui peut sembler normal car la fenêtre se base en partie sur la largeur de ma page, mais dans mon cas j'ai modifié la class ms-dialog qui correspond à ma largeur de page, mais le résultat n'est pas concluant.

    Voici une partie de ma master page :

     <div id="WebPartAdderUpdatePanelContainer">
      <asp:UpdatePanel
       ID="WebPartAdderUpdatePanel"
       UpdateMode="Conditional"
       ChildrenAsTriggers="false"
       runat="server">
       <ContentTemplate>
        <WebPartPages:WebPartAdder ID="WebPartAdder" runat="server" />
       </ContentTemplate>
       <Triggers>
        <asp:PostBackTrigger ControlID="WebPartAdder" />
       </Triggers>
      </asp:UpdatePanel>
     </div>
    </div>
    <div id="s4-workspace" class="s4-nosetwidth" style="left: 0px; top: 0px">
     <div class="customPageWidth"> <!-- class pour changer largeur de page -->

    <!--class pour barre du dessus -->
      <table class="customTop customPagePadding s4-notdlg" width="92%" cellspacing="0">
       <tbody>
       <td class="customcornertl customPagePadding s4-notdlg"></td>
       <td class="customcornertr customPagePadding s4-notdlg"></td>
       </tbody>
      </table>

      <div id="s4-bodyContainer">
      
       <div class="customTitle s4-notdlg">
       <!-- modififcation de l'id s4-titlerow pour eviter le masquage de l'entete  -->
       <div id="s4-titlerow-Custom" class="s4-pr s4-notdlg s4-titlerowhidetitle">
       
        <div class="s4-title s4-lp">
         <div class="s4-title-inner">
          <table class="s4-titletable" cellspacing="0">
           <tbody>
            <tr>
             <td class="s4-titlelogo">
              <SharePoint:SPLinkButton runat="server" NavigateUrl="~site/" id="onetidProjectPropertyTitleGraphic">
               <SharePoint:SiteLogoImage name="onetidHeadbnnr0" id="onetidHeadbnnr2" LogoImageUrl="/_layouts/images/siteIcon.png" runat="server"/>
              </SharePoint:SPLinkButton>
             </td>
             <td class="s4-titletext" style="width: 1141px">
              <h1 name="onetidProjectPropertyTitle">
               <asp:ContentPlaceHolder id="PlaceHolderSiteName" runat="server">
                <SharePoint:SPLinkButton runat="server" NavigateUrl="~site/" id="onetidProjectPropertyTitle"><SharePoint:ProjectProperty Property="Title" runat="server" /></SharePoint:SPLinkButton>
               </asp:ContentPlaceHolder>
              </h1>
              <span id="onetidPageTitleSeparator" class="s4-nothome s4-bcsep s4-titlesep">
              <SharePoint:ClusteredDirectionalSeparatorArrow runat="server"/> </span>
              <h2>
               <asp:ContentPlaceHolder id="PlaceHolderPageTitleInTitleArea" runat="server" />
              </h2>

    Mon fichier class :

    body {
     background-color:silver;
     background-position:center;background-repeat:no-repeat;
     overflow:auto !important;
    }

    /* test avec largeur en  % */

    .customPageWidth {
     margin: auto;
        position: relative;
        width: 90% !important;
        height:100% !important;
        overflow:hidden !important
    }

    body #s4-workspace {
        height: 100% !important;
        left: 0;
        overflow: hidden;
        position: relative;
    }

    #s4-mainarea {
    background-color :white;
    overflow:hidden;
    }


    #s4-bodyContainer {
    overflow:hidden;
    }

    .ms-dialog .customPageWidth,.ms-dialog body #s4-workspace,.ms-dialog #s4-mainarea, .ms-dialog #s4-bodyContainer {
     width:100% !important;
     height:100% !important;
     }

    .s4-title {
    background-image:url('../../../../SiteCollectionImages/jfhtod.png');
    background-position:right;
    background-repeat: no-repeat;
    background-color:#FFFFFF;
    }

    .s4-titletext {
    width: 100% !important;
    }
    /* positionnement barre de haut de page bord arrondis */

    .customTop {
     height: 35px;
     width: 100%;
     padding-top:20px;
     margin:auto; 
    }

    .customcornertl {
     background-image:url('../../../../SiteCollectionImages/bgTop_sans_ombre.png');
     background-repeat:no-repeat;
     height: 35px;
     background-position:left bottom;
     padding-top:20px

    }

    .customcornertr {
     background-image:url('../../../../SiteCollectionImages/bgTop_sans_ombre.png');
     background-repeat:no-repeat;
     height: 35px;
     background-position:bottom right;
     padding-top:20px

    }


    /* positionnement barre de bas de page bord arrondis */
    .customBottom {
     /*background-image: url("../../../../SiteCollectionImages/bgbottom.png");
        background-repeat: no-repeat;
        background-position: top;
        display: block; */
        height: 55px;
        padding-bottom: 0px;

    }

    .customcornerbl {
     background-image:url('../../../../SiteCollectionImages/bgBottom_sans_ombre.png');
     background-repeat:no-repeat;
     height: 35px;
     background-position:left top;
     padding-top:20px

    }

    .customcornerbr {
     background-image:url('../../../../SiteCollectionImages/bgBottom_sans_ombre.png');
     background-repeat:no-repeat;
     height: 35px;
     background-position:top right;
     padding-top:20px

    }

    .ms-listedit {
    margin-left:0px;
    }

    Les fenêtres en question :

     Celle-ci est encore pire :

    Si quelqu'un à une idée je suis preneur !!!

    Merci d'avance

    Olivier

    jeudi 19 juillet 2012 07:46

Toutes les réponses

  • Bonjour,

    Tout d'abord, merci parce que tu m'as fait découvrir une fonctionnalité que je ne connaissais. Su mon site, je n'avais pas la possibilité de choisir le dossier de destination! la réponse ici : http://sharepointrelated.com/2012/03/13/missing-destination-folder-on-upload-document-form/

    Revenons à tes moutons ! J'ai reproduit ton problème qui est sans doute causé par une largeur en % du sp-modal. (Dans ton css , essaies juste de mettre une largeur 1024px et tu n'as plus le problème; mais ce n'est pas suffisant, il faut que cette fenêtre s'ajuste au contenu)

    Pour le corriger, supprime ta div .customPageWidth et mets ses propriétés dans #s4-workspace.

     body #s4-workspace {
         margin: auto;
         position: relative;
         width: 90% !important;
         height:100% !important;
         overflow:hidden !important; 
         left:0}
    

    Modifie le css de .ms-dialog en :

     .ms-dialog #s4-workspace {
      margin:0px !important;
     width:auto !important;
     height:auto !important;
     padding: 0px !important;
    }

    Et ça fontionne (Peut être à adapter à tous tes besoins) : A tester un peu partout pour vérifier qu'il n'y a pas d'effet de bord)

    NicoBzh

    jeudi 19 juillet 2012 10:49
  • Bonjour Nico,

    J'ai bien suivi tes instructions, lais j'ai toujours le même probleme, l'affichage est éxactement comme avant, je n'obtiens pas du tout la même chose que toi, c'est sans doute du à l'extrait de master page que j'ai collé, il était insufisant pour que tu reproduise excatement mes conditions.

    Voila la version complete :

    <%@Master language="C#"%>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
    <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register TagPrefix="wssuc" TagName="Welcome" src="~/_controltemplates/Welcome.ascx" %>
    <%@ Register TagPrefix="wssuc" TagName="MUISelector" src="~/_controltemplates/MUISelector.ascx" %>
    <%@ Register TagPrefix="wssuc" TagName="DesignModeConsole" src="~/_controltemplates/DesignModeConsole.ascx" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html lang="<%$Resources:wss,language_value%>" dir="<%$Resources:wss,multipages_direction_dir_value%>" runat="server" xmlns:o="urn:schemas-microsoft-com:office:office" __expr-val-dir="ltr">
    <head runat="server">
     <meta http-equiv="X-UA-Compatible" content="IE=8"/>
     <meta name="GENERATOR" content="Microsoft SharePoint"/>
     <meta name="progid" content="SharePoint.WebPartPage.Document"/>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
     <meta http-equiv="Expires" content="0"/>
     <SharePoint:RobotsMetaTag runat="server"/>
     <title id="onetidTitle"><asp:ContentPlaceHolder id="PlaceHolderPageTitle" runat="server"/></title>
     <SharePoint:CssLink runat="server" Version="4"/>
     <SharePoint:Theme runat="server"/>
     <SharePoint:ULSClientConfig runat="server"/>
     <script type="text/javascript">
     var _fV4UI = true;
     </script>
     <script type="text/javascript" src="/_layouts/scripts/jquery-1.7.2.min.js"></script>
     <script type="text/javascript" src="/_layouts/scripts/wrap_to_fix.js"></script>
    <SharePoint:ScriptLink language="javascript" name="core.js" OnDemand="true" runat="server"/>
     <SharePoint:CustomJSUrl runat="server"/>
     <SharePoint:SoapDiscoveryLink runat="server"/>
     <asp:ContentPlaceHolder id="PlaceHolderAdditionalPageHead" runat="server"/>
     <SharePoint:DelegateControl runat="server" ControlId="AdditionalPageHead" AllowMultipleControls="true"/>
     <SharePoint:SPShortcutIcon runat="server" IconUrl="/_layouts/images/favicon.ico"/>
     <asp:ContentPlaceHolder id="PlaceHolderBodyAreaClass" runat="server"/>
     <asp:ContentPlaceHolder id="PlaceHolderTitleAreaClass" runat="server"/>
     <SharePoint:SPPageManager runat="server"/>
     <SharePoint:SPHelpPageComponent Visible="false" runat="server"/>
     <SharePoint:CssRegistration name="<% $SPUrl:~sitecollection/Style Library/~language/Themable/Core Styles/custom_ts_work.css %>" After="corev4.css" runat="server"/>
    </head>
    <body scroll="no" onload="if (typeof(_spBodyOnLoadWrapper) != 'undefined') _spBodyOnLoadWrapper();" class="v4master">
      <form runat="server" onsubmit="if (typeof(_spFormOnSubmitWrapper) != 'undefined') {return _spFormOnSubmitWrapper();} else {return true;}">
      <asp:ScriptManager id="ScriptManager" runat="server" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true" />
     <WebPartPages:SPWebPartManager id="m" runat="Server"/>
    <SharePoint:SPNoScript runat="server"/>
    <div id="TurnOnAccessibility" style="display:none" class="s4-notdlg noindex">
     <a id="linkTurnOnAcc" href="#" class="ms-TurnOnAcc" onclick="SetIsAccessibilityFeatureEnabled(true);UpdateAccessibilityUI();document.getElementById('linkTurnOffAcc').focus();return false;">
     <SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,master_turnonaccessibility%>" EncodeMethod="HtmlEncode"/></a>
    </div>
    <div id="TurnOffAccessibility" style="display:none" class="s4-notdlg noindex">
     <a id="linkTurnOffAcc" href="#" class="ms-TurnOffAcc" onclick="SetIsAccessibilityFeatureEnabled(false);UpdateAccessibilityUI();document.getElementById('linkTurnOnAcc').focus();return false;">
     <SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,master_turnoffaccessibility%>" EncodeMethod="HtmlEncode"/></a>
    </div>
    <div class="s4-notdlg s4-skipribbonshortcut noindex">
     <a href="javascript:;" onclick="javascript:this.href='#startNavigation';" class="ms-SkiptoNavigation" accesskey="<%$Resources:wss,skipribbon_accesskey%>" runat="server">
     <SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,skipRibbonCommandsLink%>" EncodeMethod="HtmlEncode"/></a>
    </div>
    <div class="s4-notdlg noindex">
     <a href="javascript:;" onclick="javascript:this.href='#mainContent';" class="ms-SkiptoMainContent" accesskey="<%$Resources:wss,maincontent_accesskey%>" runat="server">
     <SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,mainContentLink%>" EncodeMethod="HtmlEncode"/></a>
    </div>
    <a id="HiddenAnchor" href="javascript:;" style="display:none;"></a>
    <SharePoint:DelegateControl runat="server" ControlId="GlobalNavigation"/>
    <div id="s4-ribbonrow" class="s4-pr s4-ribbonrowhidetitle">
     <div id="s4-ribboncont">
      
      <SharePoint:SPRibbon
       runat="server"
       PlaceholderElementId="RibbonContainer"
       CssFile="">
       <SharePoint:SPRibbonPeripheralContent
        runat="server"
        Location="TabRowLeft"
        CssClass="ms-siteactionscontainer s4-notdlg">
            <span class="ms-siteactionsmenu" id="siteactiontd">
          <!-- modification pour afficher le menu "site action" uniquement pour les administrateur -->
           <SharePoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server" PermissionsString="ManageSubwebs">
            <!-- -->
            <SharePoint:SiteActions runat="server" accesskey="<%$Resources:wss,tb_SiteActions_AK%>" id="SiteActionsMenuMain"
          PrefixHtml=""
          SuffixHtml=""
          MenuNotVisibleHtml="&amp;nbsp;"
          >
          <CustomTemplate>
          <SharePoint:FeatureMenuTemplate runat="server"
           FeatureScope="Site"
           Location="Microsoft.SharePoint.StandardMenu"
           GroupId="SiteActions"
           UseShortId="true"
           >
           <SharePoint:MenuItemTemplate runat="server" id="MenuItem_EditPage"
            Text="<%$Resources:wss,siteactions_editpage%>"
            Description="<%$Resources:wss,siteactions_editpagedescriptionv4%>"
            ImageUrl="/_layouts/images/ActionsEditPage.png"
            MenuGroupId="100"
            Sequence="110"
            ClientOnClickNavigateUrl="javascript:ChangeLayoutMode(false);"
            />
           <SharePoint:MenuItemTemplate runat="server" id="MenuItem_TakeOffline"
            Text="<%$Resources:wss,siteactions_takeoffline%>"
            Description="<%$Resources:wss,siteactions_takeofflinedescription%>"
            ImageUrl="/_layouts/images/connecttospworkspace32.png"
            MenuGroupId="100"
            Sequence="120"
            />
           <SharePoint:MenuItemTemplate runat="server" id="MenuItem_CreatePage"
            Text="<%$Resources:wss,siteactions_createpage%>"
            Description="<%$Resources:wss,siteactions_createpagedesc%>"
            ImageUrl="/_layouts/images/NewContentPageHH.png"
            MenuGroupId="200"
            Sequence="210"
            UseShortId="true"
            ClientOnClickScriptContainingPrefixedUrl="if (LaunchCreateHandler('Page')) { OpenCreateWebPageDialog('~site/_layouts/createwebpage.aspx') }"
            PermissionsString="AddListItems, EditListItems"
            PermissionMode="All" />
           <SharePoint:MenuItemTemplate runat="server" id="MenuItem_CreateDocLib"
            Text="<%$Resources:wss,siteactions_createdoclib%>"
            Description="<%$Resources:wss,siteactions_createdoclibdesc%>"
            ImageUrl="/_layouts/images/NewDocLibHH.png"
            MenuGroupId="200"
            Sequence="220"
            UseShortId="true"
            ClientOnClickScriptContainingPrefixedUrl="if (LaunchCreateHandler('DocLib')) { GoToPage('~site/_layouts/new.aspx?FeatureId={00bfea71-e717-4e80-aa17-d0c71b360101}&amp;ListTemplate=101') }"
            PermissionsString="ManageLists"
            PermissionMode="Any"
            VisibilityFeatureId="00BFEA71-E717-4E80-AA17-D0C71B360101" />
           <SharePoint:MenuItemTemplate runat="server" id="MenuItem_CreateSite"
            Text="<%$Resources:wss,siteactions_createsite%>"
            Description="<%$Resources:wss,siteactions_createsitedesc%>"
            ImageUrl="/_layouts/images/newweb32.png"
            MenuGroupId="200"
            Sequence="230"
            UseShortId="true"
            ClientOnClickScriptContainingPrefixedUrl="if (LaunchCreateHandler('Site')) { STSNavigate('~site/_layouts/newsbweb.aspx') }"
            PermissionsString="ManageSubwebs,ViewFormPages"
            PermissionMode="All" />
           <SharePoint:MenuItemTemplate runat="server" id="MenuItem_Create"
            Text="<%$Resources:wss,siteactions_create%>"
            Description="<%$Resources:wss,siteactions_createdesc%>"
            MenuGroupId="200"
            Sequence="240"
            UseShortId="true"
            ClientOnClickScriptContainingPrefixedUrl="if (LaunchCreateHandler('All')) { STSNavigate('~site/_layouts/create.aspx') }"
            PermissionsString="ManageLists, ManageSubwebs"
            PermissionMode="Any" />
           <SharePoint:MenuItemTemplate runat="server" id="MenuItem_ViewAllSiteContents"
            Text="<%$Resources:wss,quiklnch_allcontent%>"
            Description="<%$Resources:wss,siteactions_allcontentdescription%>"
            ImageUrl="/_layouts/images/allcontent32.png"
            MenuGroupId="300"
            Sequence="302"
            UseShortId="true"
            ClientOnClickNavigateUrl="~site/_layouts/viewlsts.aspx"
            PermissionsString="ViewFormPages"
            PermissionMode="Any" />
            <SharePoint:MenuItemTemplate runat="server" id="MenuItem_EditSite"
            Text="<%$Resources:wss,siteactions_editsite%>"
            Description="<%$Resources:wss,siteactions_editsitedescription%>"
            ImageUrl="/_layouts/images/SharePointDesigner32.png"
            MenuGroupId="300"
            Sequence="304"
            UseShortId="true"
            ClientOnClickScriptContainingPrefixedUrl="EditInSPD('~site/',true);"
            PermissionsString="AddAndCustomizePages"
            PermissionMode="Any"
           />
           <SharePoint:MenuItemTemplate runat="server" id="MenuItem_SitePermissions"
            Text="<%$Resources:wss,people_sitepermissions%>"
            Description="<%$Resources:wss,siteactions_sitepermissiondescriptionv4%>"
            ImageUrl="/_layouts/images/Permissions32.png"
            MenuGroupId="300"
            Sequence="310"
            UseShortId="true"
            ClientOnClickNavigateUrl="~site/_layouts/user.aspx"
            PermissionsString="EnumeratePermissions"
            PermissionMode="Any" />
           <SharePoint:MenuItemTemplate runat="server" id="MenuItem_Settings"
            Text="<%$Resources:wss,settings_pagetitle%>"
            Description="<%$Resources:wss,siteactions_sitesettingsdescriptionv4%>"
            ImageUrl="/_layouts/images/settingsIcon.png"
            MenuGroupId="300"
            Sequence="320"
            UseShortId="true"
            ClientOnClickNavigateUrl="~site/_layouts/settings.aspx"
            PermissionsString="EnumeratePermissions,ManageWeb,ManageSubwebs,AddAndCustomizePages,ApplyThemeAndBorder,ManageAlerts,ManageLists,ViewUsageData"
            PermissionMode="Any" />
           <SharePoint:MenuItemTemplate runat="server" id="MenuItem_CommitNewUI"
            Text="<%$Resources:wss,siteactions_commitnewui%>"
            Description="<%$Resources:wss,siteactions_commitnewuidescription%>"
            ImageUrl="/_layouts/images/visualupgradehh.png"
            MenuGroupId="300"
            Sequence="330"
            UseShortId="true"
            ClientOnClickScriptContainingPrefixedUrl="GoToPage('~site/_layouts/prjsetng.aspx')"
            PermissionsString="ManageWeb"
            PermissionMode="Any"
            ShowOnlyIfUIVersionConfigurationEnabled="true" />
          </SharePoint:FeatureMenuTemplate>
          </CustomTemplate>
           </SharePoint:SiteActions>
           <!-- fin modif affichage menu site action -->
           </SharePoint:SPSecurityTrimmedControl>
           </span>
       <!-- modif pour cacher le menu de navigation et le button "page -->
       <SharePoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl4" runat="server" PermissionsString="ManageSubwebs">
        <asp:ContentPlaceHolder id="PlaceHolderGlobalNavigation" runat="server">
          <SharePoint:PopoutMenu
           runat="server"
           ID="GlobalBreadCrumbNavPopout"
           IconUrl="/_layouts/images/fgimg.png"
           IconAlt="<%$Resources:wss,master_breadcrumbIconAlt%>"
           IconOffsetX=0
           IconOffsetY=112
           IconWidth=16
           IconHeight=16
           AnchorCss="s4-breadcrumb-anchor"
           AnchorOpenCss="s4-breadcrumb-anchor-open"
           MenuCss="s4-breadcrumb-menu">
           <div class="s4-breadcrumb-top">
            <asp:Label runat="server" CssClass="s4-breadcrumb-header" Text="<%$Resources:wss,master_breadcrumbHeader%>" />
           </div>
           <asp:ContentPlaceHolder id="PlaceHolderTitleBreadcrumb" runat="server">
            <SharePoint:ListSiteMapPath
             runat="server"
             SiteMapProviders="SPSiteMapProvider,SPContentMapProvider"
             RenderCurrentNodeAsLink="false"
             PathSeparator=""
             CssClass="s4-breadcrumb"
             NodeStyle-CssClass="s4-breadcrumbNode"
             CurrentNodeStyle-CssClass="s4-breadcrumbCurrentNode"
             RootNodeStyle-CssClass="s4-breadcrumbRootNode"
             NodeImageOffsetX=0
             NodeImageOffsetY=353
             NodeImageWidth=16
             NodeImageHeight=16
             NodeImageUrl="/_layouts/images/fgimg.png"
             RTLNodeImageOffsetX=0
             RTLNodeImageOffsetY=376
             RTLNodeImageWidth=16
             RTLNodeImageHeight=16
             RTLNodeImageUrl="/_layouts/images/fgimg.png"
             HideInteriorRootNodes="true"
             SkipLinkText="" />
            </asp:ContentPlaceHolder>
          </SharePoint:PopoutMenu>
          <div class="s4-die">
           <asp:ContentPlaceHolder id="PlaceHolderGlobalNavigationSiteMap" runat="server" Visible="false">
           </asp:ContentPlaceHolder>
          </div>
        </asp:ContentPlaceHolder>
        <SharePoint:PageStateActionButton id="PageStateActionButton" runat="server" Visible="false" />
       <!-- fin modif -->
       </SharePoint:SPSecurityTrimmedControl>
       </SharePoint:SPRibbonPeripheralContent>
      
       <SharePoint:SPRibbonPeripheralContent
        runat="server"
        Location="TabRowRight"
        ID="RibbonTabRowRight"
        CssClass="s4-trc-container s4-notdlg">
     <SharePoint:DelegateControl runat="server" ID="GlobalDelegate0" ControlId="GlobalSiteLink0" />
      <a href="#" tabindex="-1" style="display:none"></a><a href="#" tabindex="-1" style="display:none"></a>
      <div class="s4-trc-container-menu">
       <div>
       <wssuc:Welcome id="IdWelcome" runat="server" EnableViewState="false">
       </wssuc:Welcome>
       <wssuc:MUISelector ID="IdMuiSelector" runat="server"/>
      </div>
     </div>
     <SharePoint:DelegateControl ControlId="GlobalSiteLink2" ID="GlobalDelegate2" Scope="Farm" runat="server" />
     <span>
      <span class="s4-devdashboard">
       <Sharepoint:DeveloperDashboardLauncher
        ID="DeveloperDashboardLauncher"
        NavigateUrl="javascript:ToggleDeveloperDashboard()"
        runat="server"
        ImageUrl="/_layouts/images/fgimg.png"
        Text="<%$Resources:wss,multipages_launchdevdashalt_text%>"
        OffsetX=0
        OffsetY=222
        Height=16
        Width=16 />
      </span>
     </span>
       </SharePoint:SPRibbonPeripheralContent>
      </SharePoint:SPRibbon>
       
     </div>
     <div id="notificationArea" class="s4-noti">
     </div>
     <asp:ContentPlaceHolder ID="SPNavigation" runat="server">
       <SharePoint:DelegateControl runat="server" ControlId="PublishingConsole" Id="PublishingConsoleDelegate">
         </SharePoint:DelegateControl>
     </asp:ContentPlaceHolder>
     <div id="WebPartAdderUpdatePanelContainer">
      <asp:UpdatePanel
       ID="WebPartAdderUpdatePanel"
       UpdateMode="Conditional"
       ChildrenAsTriggers="false"
       runat="server">
       <ContentTemplate>
        <WebPartPages:WebPartAdder ID="WebPartAdder" runat="server" />
       </ContentTemplate>
       <Triggers>
        <asp:PostBackTrigger ControlID="WebPartAdder" />
       </Triggers>
      </asp:UpdatePanel>
     </div>
    </div>
    <div id="s4-workspace" class="s4-nosetwidth" style="left: 0px; top: 0px">
    <!-- <div class="customPageWidth"> -->
    <!--class pour barre du dessus -->
      <table class="customTop customPagePadding s4-notdlg" width="92%" cellspacing="0">
       <tbody>
       <td class="customcornertl customPagePadding s4-notdlg"></td>
       <td class="customcornertr customPagePadding s4-notdlg"></td>
       </tbody>
      </table>
      <div id="s4-bodyContainer">
      
       <div class="customTitle s4-notdlg">
       <!-- modififcation de l'id s4-titlerow pour eviter le masquage de l'entete  -->
       <div id="s4-titlerow-Custom" class="s4-pr s4-notdlg s4-titlerowhidetitle">
       
        <div class="s4-title s4-lp">
         <div class="s4-title-inner">
          <table class="s4-titletable" cellspacing="0">
           <tbody>
            <tr>
             <td class="s4-titlelogo">
              <SharePoint:SPLinkButton runat="server" NavigateUrl="~site/" id="onetidProjectPropertyTitleGraphic">
               <SharePoint:SiteLogoImage name="onetidHeadbnnr0" id="onetidHeadbnnr2" LogoImageUrl="/_layouts/images/siteIcon.png" runat="server"/>
              </SharePoint:SPLinkButton>
             </td>
             <td class="s4-titletext" style="width: 1141px">
              <h1 name="onetidProjectPropertyTitle">
               <asp:ContentPlaceHolder id="PlaceHolderSiteName" runat="server">
                <SharePoint:SPLinkButton runat="server" NavigateUrl="~site/" id="onetidProjectPropertyTitle"><SharePoint:ProjectProperty Property="Title" runat="server" /></SharePoint:SPLinkButton>
               </asp:ContentPlaceHolder>
              </h1>
              <span id="onetidPageTitleSeparator" class="s4-nothome s4-bcsep s4-titlesep">
              <SharePoint:ClusteredDirectionalSeparatorArrow runat="server"/> </span>
              <h2>
               <asp:ContentPlaceHolder id="PlaceHolderPageTitleInTitleArea" runat="server" />
              </h2>
              <div class="s4-pagedescription" tabindex="0" >
               <asp:ContentPlaceHolder id="PlaceHolderPageDescription" runat="server"/>
              </div>
             </td>
             <td class="s4-socialdata-notif">
              <SharePoint:DelegateControl ControlId="GlobalSiteLink3" Scope="Farm" runat="server"/>
             </td>
             
            </tr>
           </tbody>
          </table>
         </div>
        </div>
        <div id="s4-topheader2" class="s4-pr s4-notdlg">
         <a name="startNavigation"></a>
         <div id="s4-searcharea" class="s4-search s4-rp">
          <asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server">
           <SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox" Version="4"/>
          </asp:ContentPlaceHolder>
          <span class="s4-help">
            <span style="height:17px;width:17px;position:relative;display:inline-block;overflow:hidden;" class="s4-clust"><a href="#" style="height:17px;width:17px;display:inline-block;" onclick="TopHelpButtonClick('HelpHome');return false" accesskey="<%$Resources:wss,multipages_helplink_accesskey%>" id="TopHelpLink" title="<%$Resources:wss,multipages_helplinkalt_text%>" runat="server"><img src="/_layouts/images/fgimg.png" alt="<%$Resources:wss,multipages_helplinkalt_text%>" style="left:-0px !important;top:-309px !important;position:absolute;" align="absmiddle" border="0" runat="server" /></a></span>
          </span>
         </div>
         <div class="s4-rp s4-app">
         </div>
         <div class="s4-lp s4-toplinks">
          <asp:ContentPlaceHolder id="PlaceHolderTopNavBar" runat="server">
          <h2 class="ms-hidden">
          <SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,topnav_pagetitle%>" EncodeMethod="HtmlEncode"/></h2>
            <asp:ContentPlaceHolder id="PlaceHolderHorizontalNav" runat="server">
     <SharePoint:AspMenu
       ID="TopNavigationMenuV4"
       Runat="server"
       EnableViewState="false"
       DataSourceID="topSiteMap"
       AccessKey="<%$Resources:wss,navigation_accesskey%>"
       UseSimpleRendering="true"
       UseSeparateCss="false"
       Orientation="Horizontal"
       StaticDisplayLevels="2"
       MaximumDynamicDisplayLevels="1"
       SkipLinkText=""
       CssClass="s4-tn"/>
     <SharePoint:DelegateControl runat="server" ControlId="TopNavigationDataSource" Id="topNavigationDelegate">
      <Template_Controls>
       <asp:SiteMapDataSource
         ShowStartingNode="False"
         SiteMapProvider="SPNavigationProvider"
         id="topSiteMap"
         runat="server"
         StartingNodeUrl="sid:1002"/>
      </Template_Controls>
     </SharePoint:DelegateControl>
            </asp:ContentPlaceHolder>
          </asp:ContentPlaceHolder>
         </div>
        </div>
       </div>
      <!-- fin titlerow-custom -->
      </div>
       <div id="s4-statusbarcontainer">
        <div id="pageStatusBar" class="s4-status-s1">
        </div>
       </div>
        <SharePoint:VisualUpgradePreviewStatus runat="server"/>
       <div id="s4-mainarea" class="s4-pr s4-widecontentarea">
        <div id="s4-leftpanel" class="s4-notdlg">
         <div id="s4-leftpanel-content">
          <asp:ContentPlaceHolder id="PlaceHolderLeftNavBarDataSource" runat="server" />
          <asp:ContentPlaceHolder id="PlaceHolderCalendarNavigator" runat="server" />
          <asp:ContentPlaceHolder id="PlaceHolderLeftActions" runat="server"></asp:ContentPlaceHolder>
           <asp:ContentPlaceHolder id="PlaceHolderLeftNavBarTop" runat="server"/>
          <asp:ContentPlaceHolder id="PlaceHolderLeftNavBar" runat="server">
        <div class="ms-quicklaunchouter">
        <div class="ms-quickLaunch">
        <Sharepoint:UIVersionedContent runat="server" UIVersion="4">
         <ContentTemplate>
          <h2 style="display:inline;" class="ms-hidden"><SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,quiklnch_pagetitle%>" EncodeMethod="HtmlEncode"/></h2>
         </ContentTemplate>
        </SharePoint:UIVersionedContent>
        <asp:ContentPlaceHolder id="PlaceHolderQuickLaunchTop" runat="server">
        <SharePoint:UIVersionedContent UIVersion="3" runat="server">
         <ContentTemplate>
          <h3 class="ms-standardheader"><label class="ms-hidden"><SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,quiklnch_pagetitle%>" EncodeMethod="HtmlEncode"/></label>
          <Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="ManageSubwebs">
          <!-- modification pour cacher le view all site content aux non administrateurs permission string original = ViewFormPages -->
           <div class="ms-quicklaunchheader"><SharePoint:SPLinkButton id="idNavLinkViewAll" runat="server" NavigateUrl="~site/_layouts/viewlsts.aspx" Text="<%$Resources:wss,quiklnch_allcontent%>" accesskey="<%$Resources:wss,quiklnch_allcontent_AK%>"/></div>
          </SharePoint:SPSecurityTrimmedControl>
          </h3>
         </ContentTemplate>
        </SharePoint:UIVersionedContent>
        </asp:ContentPlaceHolder>
        <Sharepoint:SPNavigationManager
        id="QuickLaunchNavigationManager"
        runat="server"
        QuickLaunchControlId="QuickLaunchMenu"
        ContainedControl="QuickLaunch"
        EnableViewState="false"
        CssClass="ms-quicklaunch-navmgr">
        &nbsp;<div>
         <SharePoint:DelegateControl runat="server" ControlId="QuickLaunchDataSource">
          <Template_Controls>
          <asp:SiteMapDataSource SiteMapProvider="SPNavigationProvider" ShowStartingNode="False" id="QuickLaunchSiteMap" StartingNodeUrl="sid:1025" runat="server" />
          </Template_Controls>
         </SharePoint:DelegateControl>
         <SharePoint:UIVersionedContent UIVersion="3" runat="server">
          <ContentTemplate>
           <SharePoint:AspMenu id="QuickLaunchMenu" runat="server" DataSourceId="QuickLaunchSiteMap" Orientation="Vertical" StaticDisplayLevels="2" ItemWrap="true" MaximumDynamicDisplayLevels="0" StaticSubMenuIndent="0" SkipLinkText="" CssClass="s4-die">
            <LevelMenuItemStyles>
             <asp:menuitemstyle CssClass="ms-navheader" />
             <asp:menuitemstyle CssClass="ms-navitem" />
            </LevelMenuItemStyles>
            <LevelSubMenuStyles>
             <asp:submenustyle CssClass="ms-navSubMenu1" />
             <asp:submenustyle CssClass="ms-navSubMenu2" />
            </LevelSubMenuStyles>
            <LevelSelectedStyles>
             <asp:menuitemstyle CssClass="ms-selectednavheader" />
             <asp:menuitemstyle CssClass="ms-selectednav" />
            </LevelSelectedStyles>
           </SharePoint:AspMenu>
          </ContentTemplate>
         </SharePoint:UIVersionedContent>
         <SharePoint:UIVersionedContent UIVersion="4" runat="server">
          <ContentTemplate>
           <SharePoint:AspMenu id="V4QuickLaunchMenu" runat="server" EnableViewState="false" DataSourceId="QuickLaunchSiteMap" UseSimpleRendering="true" UseSeparateCss="false" Orientation="Vertical" StaticDisplayLevels="2" MaximumDynamicDisplayLevels="0" SkipLinkText="" CssClass="s4-ql" />
          </ContentTemplate>
         </SharePoint:UIVersionedContent>
        </div>
        
        </Sharepoint:SPNavigationManager>
       <Sharepoint:UIVersionedContent runat="server" UIVersion="3">
        <ContentTemplate>
         <Sharepoint:SPNavigationManager
         id="TreeViewNavigationManager"
         runat="server"
         ContainedControl="TreeView"
         >
           <table class="ms-navSubMenu1" cellpadding="0" cellspacing="0" border="0">
          <tr>
            <td>
           <table class="ms-navheader" width="100%" cellpadding="0" cellspacing="0" border="0">
             <tr>
            <td nowrap="nowrap" id="idSiteHierarchy">
              <SharePoint:SPLinkButton runat="server" NavigateUrl="~site/_layouts/viewlsts.aspx" id="idNavLinkSiteHierarchy" Text="<%$Resources:wss,treeview_header%>" accesskey="<%$Resources:wss,quiklnch_allcontent_AK%>"/>
            </td>
             </tr>
           </table>
            </td>
          </tr>
           </table>
           <div class="ms-treeviewouter">
          <SharePoint:DelegateControl runat="server" ControlId="TreeViewAndDataSource">
            <Template_Controls>
           <SharePoint:SPHierarchyDataSourceControl
            runat="server"
            id="TreeViewDataSource"
            RootContextObject="Web"
            IncludeDiscussionFolders="true"
           />
           <SharePoint:SPRememberScroll runat="server" id="TreeViewRememberScroll" onscroll="javascript:_spRecordScrollPositions(this);" style="overflow: auto;height: 400px;width: 150px; ">
             <Sharepoint:SPTreeView
            id="WebTreeView"
            runat="server"
            ShowLines="false"
            DataSourceId="TreeViewDataSource"
            ExpandDepth="0"
            SelectedNodeStyle-CssClass="ms-tvselected"
            NodeStyle-CssClass="ms-navitem"
            NodeStyle-HorizontalPadding="2"
            SkipLinkText=""
            NodeIndent="12"
            ExpandImageUrl="/_layouts/images/tvplus.gif"
            CollapseImageUrl="/_layouts/images/tvminus.gif"
            NoExpandImageUrl="/_layouts/images/tvblank.gif"
             >
             </Sharepoint:SPTreeView>
           </Sharepoint:SPRememberScroll>
            </Template_Controls>
          </SharePoint:DelegateControl>
           </div>
         </Sharepoint:SPNavigationManager>
        </ContentTemplate>
       </SharePoint:UIVersionedContent>
       <Sharepoint:UIVersionedContent runat="server" UIVersion="4">
        <ContentTemplate>
         <Sharepoint:SPNavigationManager
         id="TreeViewNavigationManagerV4"
         runat="server"
         ContainedControl="TreeView"
         CssClass="s4-treeView"
         >
           <SharePoint:SPLinkButton runat="server" NavigateUrl="~site/_layouts/viewlsts.aspx" id="idNavLinkSiteHierarchyV4" Text="<%$Resources:wss,treeview_header%>" accesskey="<%$Resources:wss,quiklnch_allcontent_AK%>" CssClass="s4-qlheader" />
            <div class="ms-treeviewouter">
           <SharePoint:DelegateControl runat="server" ControlId="TreeViewAndDataSource">
             <Template_Controls>
            <SharePoint:SPHierarchyDataSourceControl
             runat="server"
             id="TreeViewDataSourceV4"
             RootContextObject="Web"
             IncludeDiscussionFolders="true"
            />
            <SharePoint:SPRememberScroll runat="server" id="TreeViewRememberScrollV4" onscroll="javascript:_spRecordScrollPositions(this);" style="overflow: auto;height: 400px;width: 155px; ">
              <Sharepoint:SPTreeView
             id="WebTreeViewV4"
             runat="server"
             ShowLines="false"
             DataSourceId="TreeViewDataSourceV4"
             ExpandDepth="0"
             SelectedNodeStyle-CssClass="ms-tvselected"
             NodeStyle-CssClass="ms-navitem"
             SkipLinkText=""
             NodeIndent="12"
             ExpandImageUrl="/_layouts/images/tvclosed.png"
             ExpandImageUrlRtl="/_layouts/images/tvclosedrtl.png"
             CollapseImageUrl="/_layouts/images/tvopen.png"
             CollapseImageUrlRtl="/_layouts/images/tvopenrtl.png"
             NoExpandImageUrl="/_layouts/images/tvblank.gif"
              >
              </Sharepoint:SPTreeView>
            </Sharepoint:SPRememberScroll>
             </Template_Controls>
           </SharePoint:DelegateControl>
            </div>
         </Sharepoint:SPNavigationManager>
        </ContentTemplate>
       </SharePoint:UIVersionedContent>
        <asp:ContentPlaceHolder id="PlaceHolderQuickLaunchBottom" runat="server">
        <SharePoint:UIVersionedContent UIVersion="3" runat="server" id="PlaceHolderQuickLaunchBottomV3">
         <ContentTemplate>
          <table width="100%" cellpadding="0" cellspacing="0" border="0" class="s4-die">
          <tbody>
          <tr><td>
          <table class="ms-recyclebin" width="100%" cellpadding="0" cellspacing="0" border="0">
          <tbody>
          <tr><td nowrap="nowrap">
          <SharePoint:SPLinkButton runat="server" NavigateUrl="~site/_layouts/recyclebin.aspx" id="v3idNavLinkRecycleBin" ImageUrl="/_layouts/images/recycbin.gif" Text="<%$Resources:wss,StsDefault_RecycleBin%>" PermissionsString="DeleteListItems" />
          </td></tr>
          </table>
          </td></tr>
          </table>
         </ContentTemplate>
        </SharePoint:UIVersionedContent>
        <SharePoint:UIVersionedContent UIVersion="4" runat="server" id="PlaceHolderQuickLaunchBottomV4">
         <ContentTemplate>
          <ul class="s4-specialNavLinkList">
           <li>
            <SharePoint:ClusteredSPLinkButton
             runat="server"
             NavigateUrl="~site/_layouts/recyclebin.aspx"
             ImageClass="s4-specialNavIcon"
             ImageUrl="/_layouts/images/fgimg.png"
             ImageWidth=16
             ImageHeight=16
             OffsetX=0
             OffsetY=428
             id="idNavLinkRecycleBin"
             Text="<%$Resources:wss,StsDefault_RecycleBin%>"
             CssClass="s4-rcycl"
             PermissionsString="DeleteListItems" />
           </li>
           <li>
           <!-- modification pour cacher le menu view all site content aux non admin -->
           <SharePoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl3" runat="server" PermissionsString="ManageSubwebs">
            <SharePoint:ClusteredSPLinkButton
             id="idNavLinkViewAllV4"
             runat="server"
             PermissionsString="ViewFormPages"
             NavigateUrl="~site/_layouts/viewlsts.aspx"
             ImageClass="s4-specialNavIcon"
             ImageUrl="/_layouts/images/fgimg.png"
             ImageWidth=16
             ImageHeight=16
             OffsetX=0
             OffsetY=0
             Text="<%$Resources:wss,quiklnch_allcontent_short%>"
             accesskey="<%$Resources:wss,quiklnch_allcontent_AK%>"/>
           </SharePoint:SPSecurityTrimmedControl>
           <!-- fin modif -->
           </li>
          </ul>
         </ContentTemplate>
        </SharePoint:UIVersionedContent>
        </asp:ContentPlaceHolder>
        </div>
        </div>
          </asp:ContentPlaceHolder>
         </div>
        </div>
        <div class="s4-ca s4-ca-dlgNoRibbon" id="MSO_ContentTable">
         <div class="s4-die">
          <asp:ContentPlaceHolder id="PlaceHolderPageImage" runat="server" Visible="false"/>
          <asp:ContentPlaceHolder id="PlaceHolderTitleLeftBorder" runat="server" Visible="false">
          </asp:ContentPlaceHolder>
           <div id="onetidPageTitleAreaFrame" class='ms-pagetitleareaframe s4-pagetitle'></div>
          <asp:ContentPlaceHolder id="PlaceHolderMiniConsole" runat="server" Visible="false"/>
          <span class="s4-die">
           <asp:ContentPlaceHolder id="PlaceHolderTitleRightMargin" runat="server" Visible="false"/>
          </span>
          <asp:ContentPlaceHolder id="PlaceHolderTitleAreaSeparator" runat="server" Visible="false"/>
           <asp:ContentPlaceHolder id="PlaceHolderNavSpacer" runat="server" Visible="false"><img src="/_layouts/images/blank.gif" width='138' height='1' alt="" /></asp:ContentPlaceholder>
          <asp:ContentPlaceHolder id="PlaceHolderLeftNavBarBorder" runat="server" Visible="false"></asp:ContentPlaceHolder>
          <asp:ContentPlaceHolder id="PlaceHolderBodyLeftBorder" runat="server" Visible="false">
          </asp:ContentPlaceHolder>
         </div>
         <SharePoint:VersionedPlaceHolder UIVersion="3" ID="DesignModeConsoleV3" runat="server">
          <asp:ContentPlaceHolder id="WSSDesignConsole" runat="server">
           <wssuc:DesignModeConsole id="IdDesignModeConsole" runat="server" />
          </asp:ContentPlaceHolder>
         </SharePoint:VersionedPlaceHolder>
          <div class='s4-ba'><div class='ms-bodyareacell'>
           <div id="MSO_ContentDiv" runat="server">
          <a name="mainContent"></a>
          <asp:ContentPlaceHolder id="PlaceHolderMain" runat="server">
          </asp:ContentPlaceHolder>
           </div>
          </div></div>
         <div class="s4-die">
          <asp:ContentPlaceHolder id="PlaceHolderBodyRightMargin" runat="server">
          </asp:ContentPlaceHolder>
         </div>
        </div>
       </div>
       
       <SharePoint:DeveloperDashboard runat="server"/>
      </div>
      <table class="customBottom s4-notdlg" width="100%" cellspacing="0">
       <tbody>
       <td class="customcornerbl customPagePadding s4-notdlg"></td>
       <td class="customcornerbr customPagePadding s4-notdlg"></td>
       </tbody>
      </table>
    </div>
      <asp:ContentPlaceHolder id="PlaceHolderFormDigest" runat="server">
      <SharePoint:FormDigest runat="server"/>
      </asp:ContentPlaceHolder>
       <input type="text" name="__spText1" title="text" style="display:none;" />
       <input type="text" name="__spText2" title="text" style="display:none;" />
      </form>
      <asp:ContentPlaceHolder id="PlaceHolderUtilityContent" runat="server"/>
     <SharePoint:WarnOnUnsupportedBrowsers runat="server"/>
    </body>
    </html>

    jeudi 19 juillet 2012 13:57
  • Pas plus d'idée que tout à l'heure. Le soucis vient de la largeur fixe pour les fenêtres modales. Le Width:auto marchait dans mon cas mais pas dans le tien...(C'est la joie de la customisation du design dans SharePoint !!)

    Essayes en mettant un min-width:600px!important au niveau de la class ms-dialog.

    NicoBzh

    jeudi 19 juillet 2012 14:54
  • Bonjour à tous,

    J'ai finalement rtouvé une solutoin qui semble faire l'affaire, je dis bien "semble" car je n'ai pas fini tous les tests. quoi qu'il en soit si cela peux intersser quelqu'un voici la partie interressante du CSS :

    .ms-dialog #s4-workspace {
     margin:0px !important;
     width:auto !important;
     height:auto !important;
     padding: 0px !important;
     color:black !important;
    }

    .ms-dialog-nr .s4-ca-dlgNoRibbon {
        margin: auto !important;
    }

    .ms-dialog BODY #s4-bodyContainer {   
     width: auto !important;
     height:auto !important;   
     min-width: 800px !important;     /* 670 */
     /*min-height:800px; !important; */
     padding: 2%;
    }
       
    .ms-dialog BODY .no-menu#MSO_ContentTable {
      padding: 0px;
    }

    .ms-dialog .ms-bodyareacell {
        min-height: 0; !important;
        padding: 8px;
        height:auto;
        }

    mercredi 25 juillet 2012 14:34